lethal0r Posted March 7, 2007 Posted March 7, 2007 on the relevant php page i deleted the '+' character so it never shows in the price prefix box in the Products Attributes admin section. now all my items show with a - sign in front of their price in the shopping cart, can anyone tell me why its showing as a negative price?
jonquil Posted March 8, 2007 Posted March 8, 2007 Can you please post the code (and the path/pagename.php) you changed? Include about 5 lines above and below. jon It's all just ones and zeros....
californiars Posted March 8, 2007 Posted March 8, 2007 I had this same problem, and i figured out that the + sign was adding the price u had listed in the drop down menu along with the price you had posted on your main page. If you have a price listed beside the product in the drop down menu then you do not need a main price, or quick fix, do not put a price next to the item you have in the drop down menu if all the items in the drop down menu are the same price in product attributes, then your price will be correct. Make sense?
lethal0r Posted March 8, 2007 Author Posted March 8, 2007 i currently dont have a main price, only prices in the drop down box, but it still shows as a negative price in the shopping cart. i cant remember on which page i removed the + sign. is there no way to set it up so each price is the exact price, none of this increment / decrement stuff?
jonquil Posted March 8, 2007 Posted March 8, 2007 Maybe you changed some of these lines in these files? These are from the stock osC files: admin\includes\classes\shopping_cart.php(Line 224): if ($attribute_price['price_prefix'] == '+') { admin\includes\classes\shopping_cart.php(242): if ($attribute_price['price_prefix'] == '+') { includes\classes\shopping_cart.php(272): if ($attribute_price['price_prefix'] == '+') { includes\classes\shopping_cart.php(290): if ($attribute_price['price_prefix'] == '+') { Related to product column sorting: includes\functions\general.php(869): $sort_suffix = (substr($sortby, 0, 1) == $colnum ? (substr($sortby, 1, 1) == 'a' ? '+' : '-') : '') . '</a>'; The point of attributes is that some add to the cost of the product, and some can subtract from the price of the product, depending on what you key in. It should be apparent to the customer what the product costs nekkid (sans attributes) and, further, if choosing an option (attribute) is going to add/subtract from the product and by how much. Are your prices correct except they are showing -$xx.xx? jon It's all just ones and zeros....
lethal0r Posted March 8, 2007 Author Posted March 8, 2007 yeah the prices are correct except for the minus sign. the file I change was the one that makes the '+' show by default in the admin section. You know when you go to add a product attribute and by default there is a '+' in the prefix field, it was to remove that. it could possibly have been admin/products_attributes.php that i changed. thanks for your help.
jonquil Posted March 8, 2007 Posted March 8, 2007 If you removed a + sign in admin/product_attributes.php, methinks you have screwed up the math taking place, not a + sign for "viewing purposes." Go back, find where you removed it and put it back in :) Get yourself back to a place before you started to see a -xx.xx. Then you can adjust/remove the + sign in the files I listed above. You may have better results. jon It's all just ones and zeros....
hgrzesiek Posted May 15, 2007 Posted May 15, 2007 Hello I think that this is the right topic for my problem I'm trying to achieve multiplying, i mean in general you can add or sbstract from prize( depending on the prefix in product attributes) and i want to get a '*' sign, so i could multiply the price by the number given in product attributes. I've looked trought all the contributions which could include a solution, i've made changes in the code of shopping_cart.php(both), i'm not sure how to add it in the general.php file. It sound simple but i'm really stucked and it's really important regarding the nature of my store(i'm selling mostly services). Could anyone help me with that, i would be rally greatful
Recommended Posts
Archived
This topic is now archived and is closed to further replies.