Choose options label

  • Posts: 1115
  • Thank you received: 12
  • Hikashop Business
9 years 7 months ago #230374

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.4

Hello!

How can i change the label of "Choose options" (or in my language "ΔΙΑΛΕΞΤΕ ΕΠΙΛΟΓΕΣ")
to "choose name of characteristic" ?

For example, if a products has a characteristic "color", the button's text should be "Choose color".

Thank you

Please Log in or Create an account to join the conversation.

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 6 months ago #230383

Hi,

There is no option for that.

The label can be changed by adding custom code in the file "quantity" of the view "product" via the menu Display>Views.
You first need to load the characteristic of the current product with a MySQL query on the tables hikashop_variant and hikashop_characteristic.
Then you can easily add the characteristic_name to the label in the line:

echo $this->cart->displayButton(JText::_('CHOOSE_OPTIONS'), 'choose_options', $this->params, hikashop_contentLink('product&task=show&product_id='.$this->row->product_id.'&name='.$this->row->alias.$url_itemid.$this->category_pathway,$this->row),'window.location = \''.str_replace("'","\'",hikashop_contentLink('product&task=show&product_id='.$this->row->product_id.'&name='.$this->row->alias.$url_itemid.$this->category_pathway,$this->row)).'\';return false;', '');

The following user(s) said Thank You: verzevoul

Please Log in or Create an account to join the conversation.

Time to create page: 0.052 seconds
Powered by Kunena Forum