Problems, need help? Have a tip or advice? Post it here.
11 posts Page 1 of 2
This part of my product form causing my cart to return empty and I dont know what the problem could be.
Code: Select all
<cms:pp_product_options >
                    <select id="color_chose" data-placeholder="" class="f_c_field default_mod chosenTarget color_mod select_rediz_coosen">
                      <cms:pp_option_values>
                      <option value="<cms:show option_val />"><cms:show option_val /></option>
                      </cms:pp_option_values>
                    </select>
                    </cms:pp_product_options>


It works well if I use this:
Code: Select all
<cms:pp_product_options >
                                    <label><cms:show option_name />:</label><br>
                                    <cms:pp_option_values /><br>
                                </cms:pp_product_options >
Please try examining what is being returned by the tags e.g. as follows -
Code: Select all
<cms:pp_product_options >
    <cms:pp_option_values>
        <cms:dump />
    </cms:pp_option_values>
</cms:pp_product_options>
Hi KK,
This is what it outputs. Thank you
pp_options screen shot.jpg
pp_options screen shot.jpg (41.02 KiB) Viewed 3684 times
The dump shows that all the expected variables (particularly the 'option_val' variable) are set.
So I don't see any problem with that part.

Perhaps it is some CSS issue with your original code? Try doing a view:source and see what is the actual HTML output it is generating.
I stripped off all the classes and associated Css but still experiencing the same problem:
Code: Select all
<cms:pp_product_form">
<div>
      <cms:pp_product_options >
            <select>
                  <cms:pp_option_values>
                     <option value="<cms:show option_val />"><cms:show option_val /></option>
                  </cms:pp_option_values>
            </select>
     </cms:pp_product_options>
</div>
</cms:pp_product_form>


It works if I used the native couchCart way of generating the dropdown but once I try to use the pen and closing tag way of gaining control of the dropdown it ceases to work:
Code: Select all
<cms:pp_product_options >
   <label><cms:show option_name />:</label><br>
    cms:pp_option_values /><br>
</cms:pp_product_options >
Please do a view-source and paste here the exact output you are getting with the tag-pair.
Ok KK. Kindly find attached:
Code: Select all
<select id="color_chose" data-placeholder="" class="f_c_field default_mod chosenTarget color_mod select_rediz_coosen">
<option value="Red wine">Red wine</option>
<option value="White wine">White wine</option>
<option value="Rose">Rose</option>
</select>
Alright, I think I misunderstood your problem - the tag seems to be outputting whatever you are trying to make it output.
So what exactly is the problem? Can you please elaborate?
Ok. Thank you. My problem can be seen in the image below
Empty cart.jpg
Empty cart.jpg (26.18 KiB) Viewed 3666 times


When I click on add to cart, the cart.php page shows an empty cart as seen in the image above
Have you solved that?
11 posts Page 1 of 2