This is a discussion on product prices not showing on product page within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; ok...looks like i fixed it for the time being...i uploaded the backup file...and that worked.....looks like the price is not ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#11
| |||
| |||
| ok...looks like i fixed it for the time being...i uploaded the backup file...and that worked.....looks like the price is not showing because of the quantity pricebreak mod that the programmer installed... I guess for the time being i would have to live without quantity pricebreak... |
|
#12
| |||
| |||
| Dumb_question Could you upload your backup product_info.tpl template (the one that is working) so I can do a compare with winmerge to see where mine is messing up? Thanks |
|
#13
| |||
| |||
| I checked it with beyond compare....... it is the coded added by "Kerul" that is messing it up...just do a search for "Kerul" in the previous post ...you should find it at two places..this is the code that he added for "separet pricing "..mod |
|
#14
| |||
| |||
| here is the offending code, right? Code: /Added by Kerul
if(isset($customer_group_id)){
$scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id = '" . $customer_group_id . "'");
if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) {
$products_price = $scustomer_group_price['customers_group_price'];
}
}
else{
$pf->loadProduct((int)$HTTP_GET_VARS['products_id'], (int)$languages_id);
$products_price=$pf->getPriceString();
}
//End by Kerul
1a) if there is a customer group the 2a) query the database and get the group price for the product 3a) if there was a record returned, replace the price with the price from that record 1b) else 2b) use a non-existant class (to this point I don't see where "pf -> loadproduct" may live) to overwrite the price 1c) end if Then, just after that he comments out everything that has to do with pricing, from special to seperate price per customer. A simple fix that should allow you to keep the code you have in place would be to remove the 2b code and then move the 1c to a point AFTER the end of his commented out code and then uncomment the code he commented out. This would run his mod and then, if not his mod, would run the old code for setting price. This would clean up the code removing the class function that he inserted to replace the code that did function. Now, since I don't know the mod, or what it does, it may be redundant with some of the code that is commented out and there may be some small portion of the Seperate Price Per Customer that may need to be commented out, but the portion on setting the price from the default method should be kept (and not replaced with some class->function call that may not work). Good luck.
__________________ so endith the lesson<think>sometimes I just sit's and thinks</think> "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB |
|
#15
| |||
| |||
| ok so I have renamed the fallback template folder and uploaded the stock OSCMAX v2 one again, stil have the same problem, and as I have not modified the shop files in any way at all I have to assume my problem is in the database. I added a product and this item also shows the exact same issue, so surely this has to be the database? Right? |
|
#16
| |||
| |||
| Looks like my issue was somewhere inside the configuration table, no idea where. I created a new database, ran the standard mysql script for OSCMAX inside the new DB, rana compare on the old OSC and new created db, did the changes, and copied accross a select few tables from the OSC to the OSCMAX. Address_book Categories Categories_description Customers Customer_info ORders Orders_products Orders Total Products Products_description Products_options Product_options_values Product_options_values_to_Products_options Products_stock Products_to_categories Zones (I have uk counties in zones) I then went to the shop and found I had errors regards the cache so I copied the cache folder accross, solved that issue Now everything is in the new db, customers come up no errors, products no errors, everything is nearly perfect My prices display in the shop as they should be, however I have a $ instead of a £ I have cereated the uk currency and set it to default but it remains dollars IF I edit the USD one to UK I lose the prices. lol, anyone know where I am missing something here, prices ok but in Dollars and needs to be pounds. |
|
#17
| ||||
| ||||
| See this: http://oscdox.com/index.php?name=PNp...guage+prices+0 and this: http://oscdox.com/index.php?op=modlo...ame=TxtEnglish
__________________ Michael Sasek osCMax Developer
|
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Product Attribute Prices Getting Rid of Extra Chars in (+$8) | Dubious | osCMax v2 Customization/Mods | 1 | 11-13-2006 02:22 PM |
| HELP!!!! WHOLESALE PRICE NOT SHOWING ON PRODUCT PAGE | Judith | osCMax v2 Features Discussion | 0 | 10-26-2005 02:32 AM |
| Product prices are all $0 | adam231 | osCommerce 2.2 Installation Help | 4 | 10-21-2004 02:08 AM |
| No product prices in new install? | Kristine | osCMax v1.7 Installation | 3 | 04-02-2004 12:06 PM |
| one product 3 prices | Dumb_Question | osCommerce 2.2 Modification Help | 6 | 01-05-2003 04:51 PM |