Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to change default radio button for Products Copy Method ?


sheepiedog

Recommended Posts

Posted

in 2.3x - on admin/categories php - the default Copy Method is Link Product.  I vary rarely ever use Link Product but 99.9% of the time I use Duplicate Product.

 

Would anyone be able to tell me the code to change the default from Link Product to Duplicate Product ?

 

 

Posted

Ok 

 

From my 2.3.4 admin/categories.php file

 

Find (line 1017 for me)

$contents[] = array('text' => '<br />' . TEXT_HOW_TO_COPY . '<br />' . tep_draw_radio_field('copy_as', 'link', true) . ' ' . TEXT_COPY_AS_LINK . '<br />' . tep_draw_radio_field('copy_as', 'duplicate') . ' ' . TEXT_COPY_AS_DUPLICATE); 
and change to

$contents[] = array('text' => '<br />' . TEXT_HOW_TO_COPY . '<br />' . tep_draw_radio_field('copy_as', 'link') . ' ' . TEXT_COPY_AS_LINK . '<br />' . tep_draw_radio_field('copy_as', 'duplicate', true) . ' ' . TEXT_COPY_AS_DUPLICATE);
Just tested and it works fine for me
Posted

omg !  Thank you so much- works perfectly ! - I have been putting up with that for 10 years - wish I had asked before ! 

 

Thanks again - you have made my week !

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...