Jump to content

Product not adding to shopping basket in category view


Smithy

Recommended Posts

Hi All,

I am working on a new shop for a not for profit and am using Noodleman's skin and CC V.6.4.4. The problem I have is that in category view when I click on a products add to basket tab, the your basket image pops up with the message your basket is empty. I can add to the basket in latest products and within the products page. If I switch to the foundation skin it works perfectly, however I want to use Noodleman's skin, so a simple switch of skins isn't the solution.

The shop can be found at https://ww1aero.org.au/store

I have been staring at the code for hours and now cannot see the forest for the trees. Please help!

Take care all,

Smithy

Link to comment
Share on other sites

Noodleman's template content.category.php has removed the "grid" view, in favor of just the "list" view.

Unfortunately, it is only in the "grid" view code that has the form element that contains the 'product_id'.

So, to fix this:

Near line 46, find:

      {foreach from=$PRODUCTS item=product}
      <li>
         <form action="{$VAL_SELF}" method="post" class="panel add_to_basket">
            <div class="row product_list_view">

Change to:

      {foreach from=$PRODUCTS item=product}
      <li>
         <form action="{$VAL_SELF}" method="post" class="panel add_to_basket">
            <input type="hidden" name="add" value="{$product.product_id}">
            <div class="row product_list_view">

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...