Sub element title to display on product page

  • Posts: 78
  • Thank you received: 0
10 years 6 months ago #194524

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.38
-- Browser(s) name and version -- : Firefox

I have a product category "WINES" with wine farms as sub elements, i.e. "Alvi's Drift" "Babylon's Peak" etc

Once you select a wine, i.e. "Chenin Blanc" I would like the SUB ELEMENT TITLE to display here as well so clients can see on which wine farm they are.

For example:
ALVI'S DRAFT
Chenin Blanc
- Image of the wine bottle -

Where can I set this?

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 6 months ago #194564

Hi,

I'm sorry but I don't understand what you're trying to achieve.
Can you please provide a link to the page and a screenshot to illustrate what you want to do ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 78
  • Thank you received: 0
10 years 5 months ago #194921

It must be frustrating understanding everyone's queries! here is a screenshot of my request.

I want the Sub Category name to appear above the product (sub element), and also in the breadcrumb, so clients can see where they are.

For example: Alvi's Drift should appear above Chenin Blanc

Attachments:

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 5 months ago #195050

Hi,

About the breadcrumb, it's possible that it became "tiny" due to the setting "Simplified breadcrumbs " in the HikaShop configuration (Features / SEF url options).

About the display of the category above the product name ; there is no option to do that but you can add it thanks to a view override.
By overriding the product page (product / show or product / show_default) you can display the name of the first category of a product.
You can access to the categories of the current product thanks to

$this->categories
It contains an array of category objects. And you can use it, like that
echo $this->categories[0]->category_name;

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum