- Posts: 18
- Thank you received: 0
Apply default characteristic to product name
14 years 2 weeks ago #71445
by lionelmnr
Apply default characteristic to product name was created by lionelmnr
Hi
I have products that are available in CD,DVD,BOOK,DOWNLOADABLE etc. These are my characteristics.
On the home page when you click on a product called "Soon And Coming" it takes you to that product where the name is "Soon And Coming" but when you select a media type described above, it will add that to the name ex i want CD it will become "Soon And Coming: CD" which is awesome. Is there away how ever to make the name append after you click the product from the front page to the default characteristic so that when you view the product it that shows the name "Soon And Coming: CD" if that is currently selected as a characteristic. hope this ins't to confusing
Thanks
I have products that are available in CD,DVD,BOOK,DOWNLOADABLE etc. These are my characteristics.
On the home page when you click on a product called "Soon And Coming" it takes you to that product where the name is "Soon And Coming" but when you select a media type described above, it will add that to the name ex i want CD it will become "Soon And Coming: CD" which is awesome. Is there away how ever to make the name append after you click the product from the front page to the default characteristic so that when you view the product it that shows the name "Soon And Coming: CD" if that is currently selected as a characteristic. hope this ins't to confusing
Thanks
Please Log in or Create an account to join the conversation.
14 years 1 week ago #71624
by Xavier
Replied by Xavier on topic Re: Apply default characteristic to product name
Hi,
To always display the name with the variant, edit the view "product / show_default" in HikaShop > Display > Views and remove the code:
At the top of the file.
To always display the name with the variant, edit the view "product / show_default" in HikaShop > Display > Views and remove the code:
Code:
if (hikashop_getCID('product_id')!=$this->element->product_id && isset ($this->element->main->product_name))
echo $this->element->main->product_name;
else
The following user(s) said Thank You: lionelmnr
Please Log in or Create an account to join the conversation.
Time to create page: 0.053 seconds