X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Product Management Page-Change Dedault (Price Modifier) to Default (Product Variant) (https://forum.x-cart.com/showthread.php?t=36355)

lera4285 12-24-2007 11:18 AM

Product Management Page-Change Dedault (Price Modifier) to Default (Product Variant)
 
Hi,

On the product management page there is an "Update option form."
On the form the third option down is the default "Price Modifier." I would like to change the default to "Product Variant."

Does anyone know how to accomplish this?

I will never use Price Modifier and each time I include a new product I must change to Product Variant.

Thanks for your time

carpeperdiem 12-24-2007 12:29 PM

Re: Product Management Page-Change Dedault (Price Modifier) to Default (Product Varia
 
Simple. Use webmster mode. Determine that the template file you want to edit is:

/skin1/modules/Product_Options/add_product_options.tpl

Find the code for the pulldown:

Code:

<option value='Y'{if $product_option.is_modifier eq 'Y'} selected="selected"{/if}>{$lng.lbl_modificator}</option>
{if $product.product_type ne 'C'}
    <option value=''{if $product_option.is_modifier eq '' && $product_option.classid > 0} selected="selected"{/if}>{$lng.lbl_variant}</option>
{/if}
    <option value='T'{if $product_option.is_modifier eq 'T' && $product_option.classid > 0} selected="selected"{/if}>{$lng.lbl_text_field}</option>


Re-order it:

Code:

{if $product.product_type ne 'C'}
 <option value=''{if $product_option.is_modifier eq '' && $product_option.classid > 0} selected="selected"{/if}>{$lng.lbl_variant}</option>
  {/if}
<option value='Y'{if $product_option.is_modifier eq 'Y'} selected="selected"{/if}>{$lng.lbl_modificator}</option>
<option value='T'{if $product_option.is_modifier eq 'T' && $product_option.classid > 0} selected="selected"{/if}>{$lng.lbl_text_field}</option>


Learn to use webmaster mode, and you will always find what you need!

lera4285 12-24-2007 02:58 PM

Re: Product Management Page-Change Dedault (Price Modifier) to Default (Product Variant)
 
Thanks Carpeperdiem,

I am not comfortable with the webmaster mode yet so I FTP'd your suggested changes and they worked perfectly.

I am 75 and way behind you younger people plus I have a lot of learning to do.

I would not have figured this out without your help so once again thanks very much.


All times are GMT -8. The time now is 11:10 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.