virtuemart product SKU

eleanor
374 Posts
eleanor posted this 25 April 2016

Hi

I've just followed the instructions I found on How to add sku? posted by Rune posted this 23 September 2015 to add

<?php echo $product-?>sku ?>

to the CMS CODE area but by adding the code my template fails and tells me...

syntax error, unexpected '<' - joomla . please can you tell me how to add a sku thank you - joomla . please can you tell me how to add a sku thank you></'>

Hi I've just followed the instructions I found on How to add sku? posted by Rune posted this 23 September 2015 to add &lt;?php echo $product-?&gt;sku ?> to the CMS CODE area but by adding the code my template fails and tells me... syntax error, unexpected '&lt;&#39; - joomla . please can you tell me how to add a sku thank you - joomla . please can you tell me how to add a sku thank you&gt;&lt;/&#39;&gt;
Vote to pay developers attention to this features or issue.
8 Comments
Order By: Standard | Newest
eleanor
374 Posts
eleanor posted this 25 April 2016

Well that's interesting, the code I added must had changed the text, sorry.

Well that's interesting, the code I added must had changed the text, sorry.
Support Team
Support Team posted this 25 April 2016

Hello Eleanor,

The issue may be related to the code displayed wrong in the forum post. For SKU the following code should be inserted as php block:

php echo $product->product_sku

Or refer to the link and copy and paste the whole code.

Sincerely,
Nettie,
BillionDigital Team

Hello Eleanor, The issue may be related to the code displayed wrong in the forum post. For SKU the following code should be inserted as php block: php echo $product->product_sku Or refer to the [link][1] and copy and paste the whole code. Sincerely, Nettie, BillionDigital Team [1]: http://attachments.answers.billiondigital.com/94/10094/sku-virtuemart-cms-code.txt
eleanor
374 Posts
eleanor posted this 26 April 2016

Please would you explain what you mean by a 'php block'. Where exactly should I add the code?

Sorry you have overtaken my knowledge.

Thank you.

Please would you explain what you mean by a 'php block'. Where exactly should I add the code? Sorry you have overtaken my knowledge. Thank you.
Support Team
Support Team posted this 26 April 2016

Hi Eleanor,

You may output SKU for the product with the help of the CMS Code control by following these steps:

  1. Open Product Details template.
  2. Navigate Insert >> Controls >> More >> CMS Code and insert this control to the desired location on the page.
  3. Click CMS Code tab >> Edit CMS Code and add the code from this link.

Sincerely,
Nettie,
BillionDigital Team

Hi Eleanor, You may output SKU for the product with the help of the CMS Code control by following these steps: 1. Open **Product Details** template. 2. Navigate **Insert** >> **Controls** >> **More** >> **CMS Code** and insert this control to the desired location on the page. 3. Click **CMS Code** tab >> **Edit CMS Code** and add the code from [this link][1]. Sincerely, Nettie, BillionDigital Team [1]: http://attachments.answers.billiondigital.com/94/10094/sku-virtuemart-cms-code.txt
eleanor
374 Posts
eleanor posted this 26 April 2016

Thank you so, so much!

Just for others...

I needed to use the link code for it to work, with the brackets.

cms-code.JPG

THANK YOU

Thank you so, so much! Just for others... I needed to use the link code for it to work, with the brackets. !cms-code.JPG! THANK YOU
Support Team
Support Team posted this 26 April 2016

Eleanor, you are welcome! Pelase feel free to contact us if any other questions appear.

Sincerely,
Nettie,
BillionDigital team

Eleanor, you are welcome! Pelase feel free to contact us if any other questions appear. Sincerely, Nettie, BillionDigital team
psarcevic
6 Posts
psarcevic posted this 07 August 2016

Hi and if I want to include manufacturer logo on my product details page?

Hi and if I want to include manufacturer logo on my product details page?
Support Team
Support Team posted this 08 August 2016

Hello Pablo,
I believe that solution depends on the way how the logo is stored.
If it is static picture you may add Image control to output it.
If is is one of the fields associated with product then you need to use custom code to output it. I'd recommend that you look for ready to use code snippet on VM related forums. If you need help incorporating existing solution into Themler theme please let us know.

regards,
Aileen

Hello Pablo, I believe that solution depends on the way how the logo is stored. If it is static picture you may add Image control to output it. If is is one of the fields associated with product then you need to use custom code to output it. I'd recommend that you look for ready to use code snippet on VM related forums. If you need help incorporating existing solution into Themler theme please let us know. regards, Aileen
You must log in or register to leave comments