Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How To Set Default Product Option Rate Topic   - - - - -

 
  • Mikew
  • Advanced Member
  • Members
  • Join Date: 01-Mar 13
  • 50 posts

Posted 12 March 2019 - 07:41 PM #1

Hello all! We use to have CS-Cart 3.05 and on the product options the first one in the option variant would show as default to the customer. Now that we have upgraded to the latest version of cs-cart it no longer sets the first option variant as the default. Instead is says "Please, select one". Is there a way to have is have the first variant set? For example if we have two sizes available one "Small" and one "Large" the Small variant would be set to default. Note that When set to "Required" is when the "Please, select one" appears as the first selection. I'll attach screenshot for reference.

 

Thanks for any feedback!

Mike


Mike W.
www.laserengravedmemories.com

www.christianplaques.com (Not yet live)


 
  • orangegirl
  • Support engineer
  • CS-Cart Support
  • Join Date: 08-Jan 08
  • 568 posts

Posted Today, 01:45 PM #2

Hello, Mike!

 

You can comment out this part of the code in the design/themes/[active_theme]/templates/views/products/components/product_options.tpl file:

 {elseif $product.options_type == "ProductOptionsApplyOrder::SIMULTANEOUS"|enum}
                                {if !$po.value}
                                    <option value="">
                                        {if $po.disabled || $disabled}
                                            {__("select_option_above")}
                                        {else}
                                            {__("please_select_one")}
                                        {/if}
                                    </option>
                                {/if}

Clean up the templates cache after this.


Kate Lazarevskaya,
CS-Cart Support Engineer
CS-Cart Knowledge Base | CS-Cart Reference Guide