Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Hi

I have two issues that I can't seem to work out

1) If a product has variants, I select the variant and click the add button and it redirects to the cart.php page but says "Your cart is empty". If a product does not have any variants, it adds the product ok to the cart

2) The thumbnail of the product does not always show in the cart.php and checkout.php page

Below is the code for my product.php page for the issue with the variants

Code: Select all
<cms:editable name='group_variants' label='Variants' type='group' order='7' />    
        <cms:editable
            name='explain_options'
            type='message'
            group='group_variants'
            order='10'
            >
            <b>Product Variants:</b>
            <br/>
            <font color='#777'>If this product has variants (e.g. Size or Colour) add each to the box below using the following format:</font>
            <br/>
            <font color='blue'><pre>
Color[Red | Black | Green]       
Size[Large | Medium | Small]
</pre></font>
            <font color='#777'>Note that
            <br/>
            1. Add each variant is on a separate line.
            </font>
        </cms:editable>   
       
        <cms:editable
            name='pp_options'
            label=':'
            height='130'
            type='textarea'
            group='group_variants'
            order='11'
        />

<div class="product-options">
                          <cms:pp_product_options >
                              <label><cms:show option_name />:</label>
                              <br>
                              <cms:pp_option_values />
                              <br>
                          </cms:pp_product_options >
                      </div>


Below is the cart.php for the product variants issue

Code: Select all
<div class="desc-box">
   <a href="<cms:show link />"><cms:show title /></a>
     <p>
         <cms:pp_selected_options separator='<br>' />
     </p>
</div>


Below is the code from product.php for the thumbnail issue not always showing on the cart.php page

Code: Select all
<cms:editable name='pp_product_thumb' label='Thumbnail' width='70' height='64' show_preview='1' assoc_field='product_main_image' type='thumbnail' group='product_info_group' order='3' />


Below is the code for cart.php for the thumbnail issue not showing

Code: Select all
<img src="<cms:show product_thumb />" width="70" height="64" alt="<cms:show title />">
UPDATE: Think I sorted the issue with the product variants and the thumbnail issue, I had bit of the cms tag code in the wrong place. I had
Code: Select all
<cms:pp_product_form class="cart-form">
in the wrong place, I had it only around the qty input fields for some reason so moved that tag further up so now it's above the price code and seems ok now
2 posts Page 1 of 1