Jump to content

Problem when add to cart more than 1 product


Recommended Posts

Hi!

 

Im having an issue when add to cart more than one product..the thing is that when I add two products on my shopping cart, up on the right i can see:

"2 products, 3 products, 4 products, 5 products"....until 10 products.. but the price is just for the two products added and when i go to the shopping cart there is only the two products added...i dont know where is the problem. someone could give me a hand please?

 

Thanks in advance!

Link to comment
Share on other sites

maybe is something about this code, but i dont see where it could be....

 

<span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}"><span class="ajax_cart_product_txt{if $cart_qties == 0} hidden{/if}">{l s='Cart:' mod='blockuserinfo'}</span>{l s=' 1 Product' mod='blockuserinfo'}</span>
            <span class="ajax_cart_product_txt_s{if $cart_qties != 2} hidden{/if}"><span class="ajax_cart_product_txt{if $cart_qties == 0} hidden{/if}">{l s='Cart:' mod='blockuserinfo'}</span>{l s=' 2 Products' mod='blockuserinfo'}</span>
            <span class="ajax_cart_product_txt_s{if $cart_qties != 3} hidden{/if}"><span class="ajax_cart_product_txt{if $cart_qties == 0} hidden{/if}">{l s='Cart:' mod='blockuserinfo'}</span>{l s=' 3 Products' mod='blockuserinfo'}</span>
            <span class="ajax_cart_product_txt_s{if $cart_qties != 4} hidden{/if}"><span class="ajax_cart_product_txt{if $cart_qties == 0} hidden{/if}">{l s='Cart:' mod='blockuserinfo'}</span>{l s=' 4 Products' mod='blockuserinfo'}</span>
            <span class="ajax_cart_product_txt_s{if $cart_qties != 5} hidden{/if}"><span class="ajax_cart_product_txt{if $cart_qties == 0} hidden{/if}">{l s='Cart:' mod='blockuserinfo'}</span>{l s=' 5 Products' mod='blockuserinfo'}</span>
            <span class="ajax_cart_product_txt_s{if $cart_qties != 6} hidden{/if}"><span class="ajax_cart_product_txt{if $cart_qties == 0} hidden{/if}">{l s='Cart:' mod='blockuserinfo'}</span>{l s=' 6 Products' mod='blockuserinfo'}</span>
            <span class="ajax_cart_product_txt_s{if $cart_qties != 7} hidden{/if}"><span class="ajax_cart_product_txt{if $cart_qties == 0} hidden{/if}">{l s='Cart:' mod='blockuserinfo'}</span>{l s=' 7 Products' mod='blockuserinfo'}</span>
            <span class="ajax_cart_product_txt_s{if $cart_qties != 8} hidden{/if}"><span class="ajax_cart_product_txt{if $cart_qties == 0} hidden{/if}">{l s='Cart:' mod='blockuserinfo'}</span>{l s=' 8 Products' mod='blockuserinfo'}</span>
            <span class="ajax_cart_product_txt_s{if $cart_qties != 9} hidden{/if}"><span class="ajax_cart_product_txt{if $cart_qties == 0} hidden{/if}">{l s='Cart:' mod='blockuserinfo'}</span>{l s=' 9 Products' mod='blockuserinfo'}</span>
            <span class="ajax_cart_product_txt_s{if $cart_qties != 10} hidden{/if}"><span class="ajax_cart_product_txt{if $cart_qties == 0} hidden{/if}">{l s='Cart:' mod='blockuserinfo'}</span>{l s=' 10 Products' mod='blockuserinfo'}</span>

Link to comment
Share on other sites

Thanks for the idea I would like to post the link but Im just working in local at this moment...

 

it might be time to go remote. :)

 

using chrome then right click anywhere and inspect  element, click console

 

test cart and see if you are getting any errors.

 

also you can enable PS debug mode

https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-blank-page-500-internal-server-error/

 

Note: my cart does not work when debug mode is on so make sure to turn off when done testing.

Link to comment
Share on other sites

×
×
  • Create New...