Hi,
I am a PHP developer and I've been recently introduced to Zen Cart (due to work) at first it was very confusing and it still is but I am not as clueless as before. It's really complicated when there are +200 files and you don't know which is which. But I still love the amazing flexibility Zen Cart has.
Anyways, I have a store that sells canvas, and the user uploads his picture, choses a frame and it asks for the printing width and height.
The frames are priced per foot so to get the price of what the user wants I do
Price = (((width*2)/12)*Frame_Price) + ((height*2)/12)*Frame_Price)) + Canvas_Type_Price
And that gives me the price for the product.
I have edited the function attributes_price($products_id) so it gives me the price based on the attributes (frame/height/width)
Function found in /includes/classes/shopping_cart.php
When I add the product to the cart, the product itself has the correct price, but the subtotal and the top bar have a different price
TOP BAR:
Total Items: 1 Weight: 1lbs Amount: $36.55
and the cart looks something like this:
Canvas One ($95.55)
* Width - 12
* Height - 12
* Frame - Frame 1 ($20 per foot)
Sub-Total: $36.55
How would I make it so the price is constant everywhere? I've had no luck finding the other price calculating functions that give me that price.
Could some one point me in the right direction?
Thanks,
- Grind



