i want do 2 things in my opencart 3.0.2.0
1 : Option Values Quantity set default as 100
2 : when i add new product and when select option its automatically add all Option Value dont want to click on plus to add Option Value
Attachments
123.jpg (117.24 KiB) Viewed 1538 times
If you can't find any, you may have to find a professional developer for this on the commercial section of this forum.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Well I Googled "opencart extensions default option values".hostimizer wrote: ↑Fri Oct 09, 2020 5:47 pmi try to find but dont get any which allow me to do this options.
And the first result is: https://www.opencart.com/index.php?rout ... n_id=35549
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
change:admin/view/template/product/product_form.twig
Code: Select all
html += ' <td class="text-right"><input type="text" name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][quantity]" value="" placeholder="{{ entry_quantity }}" class="form-control" /></td>';
Code: Select all
html += ' <td class="text-right"><input type="text" name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][quantity]" value="100" placeholder="{{ entry_quantity }}" class="form-control" /></td>';
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
thanks for reply
i dont get this location
i dont get product folder in this location
/admin/view/template
u am using opencart 3.0.2.0
/admin/view/template/catalog/product_form.twig
storage/modification/admin/view/template/catalog/product_form.twig
org
html += ' <td class="text-right"><input type="text" name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][quantity]" value="" placeholder="{{ entry_quantity }}" class="form-control" /></td>';
replace to
html += ' <td class="text-right"><input type="text" name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][quantity]" value="100" placeholder="{{ entry_quantity }}" class="form-control" /></td>';
thanks for help bro
Do you changes via an OCmod XML script, applied to the core file, and then in the admin backend do a Extensions > Modifications > Refresh
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Users browsing this forum: Bing [Bot], siptec and 236 guests