Jump to content

[solved] Cart showing stock quantity instead of order quantity


Recommended Posts

I'm using PS version 1.3.1.1 and the free Minimaliste theme.

After adding a product to cart, if I click "check out" on the cart block everything work fine. But if I click "cart" to see what's there, it shows how many of the added product is in stock, rather than how many the customer has added.

Please help?

ETA: just discovered that the problem goes away if I change back to the default PS theme. I guess that means there's something wrong with the minimaliste theme?

ETA2: solved. I replaced from line 18 in shopping-cart-product-line.tpl

    
       {if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0}{$product.customizationQuantityTotal}{/if}
       {if !isset($customizedDatas.$productId.$productAttributeId) OR $quantityDisplayed > 0}


{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.quantity-$quantityDisplayed}{/if}



       {/if}



with what I found in the default PS theme

    
       {if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0}{$product.customizationQuantityTotal}{/if}
       {if !isset($customizedDatas.$productId.$productAttributeId) OR $quantityDisplayed > 0}


{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if}



       {/if}



And that solved it. Putting it here in case anyone else is having the same problem.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...