Apply default characteristic to product name

  • Posts: 18
  • Thank you received: 0
12 years 3 weeks ago #71445

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

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

  • Posts: 13201
  • Thank you received: 2322
12 years 3 weeks ago #71624

Hi,

To always display the name with the variant, edit the view "product / show_default" in HikaShop > Display > Views and remove the code:

			if (hikashop_getCID('product_id')!=$this->element->product_id && isset ($this->element->main->product_name))
				echo $this->element->main->product_name;
			else
At the top of the file.

The following user(s) said Thank You: lionelmnr

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

Time to create page: 0.075 seconds
Powered by Kunena Forum