Jump to content

Product not adding to shopping basket in category view


Smithy
 Share

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

Edited by 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...