Product code SKU

  • Posts: 145
  • Thank you received: 1
5 years 10 months ago #292451

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.7

I want the product code SKU to be showed.
But what is the code for it, i cant find it in the docs.
I have moderated product / listing_img_title.php with this

<!-- PRODUCT CODE -->
  <span class='hikashop_product_code_list'> varenummer : 
			<?php if ($this->config->get('show_code')) { ?>
				<?php if($this->params->get('link_to_product_page',1)){ ?>
					<a href="<?php echo $link;?>">
				<?php }
				echo $this->row->product_code;
				if($this->params->get('link_to_product_page',1)){ ?>
					</a>
				<?php } ?>
			<?php } ?>
		</span>

I get this view but no code


Then i want to add the product_code_SKU to the product, but cant find the file that i have to edit?


Hop you can lead me in the direction?


Best regards
Brian
Attachments:

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

  • Posts: 81379
  • Thank you received: 13037
  • MODERATOR
5 years 10 months ago #292455

Hi,

You have the line:
<?php if ($this->config->get('show_code')) { ?>
Which means that the product code will only appear if you turn on the "display product code" setting of the HikaShop configuration.
You could replace that line to:
<?php if (true) { ?>
to have it appear regardless of that setting.

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

  • Posts: 145
  • Thank you received: 1
5 years 10 months ago #292561

Thank you!

An what file do i finde the product view ?
Maybe i missed it in you docs, but i can find it.


Best regards
Brian

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

  • Posts: 145
  • Thank you received: 1
5 years 10 months ago #292570

IT is SOLVED
Used the product_block_img


Best regards
Brian

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
5 years 10 months ago #292571

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.077 seconds
Powered by Kunena Forum