Skip to main content

Choose options label

More
10 years 7 months ago #230374 by verzevoul
-- 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.

More
10 years 7 months ago #230383 by nicolas
Replied by nicolas on topic Choose options label
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:
Code:
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.160 seconds
Powered by Kunena Forum