Move item number from title to below Brand:XXXX

  • Posts: 19
  • Thank you received: 0
9 years 3 weeks ago #192601

-- url of the page with the problem -- : www.ravenhillproducts.com
-- Joomla version -- : 3.

Hello, Loving Hika shop. I would like to move the item number from behind the title and put it below brand preceded with the words "Item Number"
See Photo. Thanks
Ken

Attachments:

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

  • Posts: 2143
  • Thank you received: 747
9 years 3 weeks ago #192604

Hi,

First, study this tutorial for the procedure: www.hikashop.com/support/support/documen...-display.html#layout

1. You'll have to edit the view "product / show_default" for your frontend template.

2. In this view, 2ove this block:

<?php if ($this->config->get('show_code')) { ?>
		<span id="hikashop_product_code_main" class="hikashop_product_code_main">
			<?php
			echo $this->element->product_code;
			?>
		</span>
		<?php } ?>

to just before this line
<div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main">

3. Replace "span" with "div".

4. Replace the line
echo $this->element->product_code;
with
echo JText::_('ITEM_NUMBER_CUSTOM').': '.$this->element->product_code;

Then study this tutorial to "translate" the new namekey: hikashop.com/download/languages.html#modify (the last section = "How to modify...")

5. As a new language override, add this line:
ITEM_NUMBER_CUSTOM="Item Number"

Test in frontend, should work fine.
Of course, products need to have product codes entered, and the display of the product code must be enabled in the configuration.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 19
  • Thank you received: 0
9 years 3 weeks ago #192799

That was perfect instructions. Worked first time and looks good.
Thanks for your help!
Ken

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

Time to create page: 0.070 seconds
Powered by Kunena Forum