VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: airvay on September 19, 2013, 12:54:40 PM

Title: References products
Post by: airvay on September 19, 2013, 12:54:40 PM
Hi,

I use virtuemart 2.022.c and i can't view on my fronted site the references product.  I doing integrated the refenreces in the description product
http://www.rainet.fr/demo3/index.php/catalogue
Is it possible with this version to view the references ?
Thank you for your answer.

Airvay
Title: Re: References products
Post by: jenkinhill on September 19, 2013, 13:13:12 PM
What do you mean by "references" - that does not translate into English as something to do with products.
Title: Re: References products
Post by: airvay on September 19, 2013, 13:59:52 PM
References dont translate in english.
When you go in a new product, it's the first line (Ref;)
Imossible to see on the site why ?
Title: Re: References products
Post by: jenkinhill on September 19, 2013, 15:52:35 PM
You mean the SKU - the product number/identifier?
Title: Re: References products
Post by: airvay on September 19, 2013, 17:15:53 PM
Yes absolutly.
Look at my site:
http://www.rainet.fr/demo3

Show all products, nothing sku for this wherer i can enable the number identification for all ?
Title: Re: References products
Post by: jenkinhill on September 19, 2013, 18:35:27 PM
The code to show SKU in the product details page is:
<?php echo $this->product->product_sku ?>

To show SKU in the category (product listing)  page is:
<?php echo $product->product_sku ?>

You are already using template overrides so add the code to those template files in suitable positions.

http://forum.virtuemart.net/index.php?topic=108212.0
Title: Re: References products
Post by: airvay on September 20, 2013, 10:18:32 AM
To show SKU in the category (product listing)  page is:
<?php echo $product->product_sku ?>

Hi jenkinhill,

Thank you for your answer i copy your code (To show SKU in the category (product listing)  page is: <?php echo $product->product_sku ?>) in my override.css, by when i load my listing page of products, i see the sku and after the load page the sku dissapear.
Are you an idea ?
Thank you again
Title: Re: References products
Post by: jenkinhill on September 20, 2013, 10:56:56 AM
Quote from: airvay on September 20, 2013, 10:18:32 AM
i copy your code (To show SKU in the category (product listing)  page is: <?php echo $product->product_sku ?>) in my override.css

It should be in the override template, yourjoomlatemplate/html/com_virtuemart/category/default.php in the case of category layout.
Title: Re: References products
Post by: airvay on September 20, 2013, 15:50:37 PM
I'm so ssorry but i don't understant the path of your code.
In ftp i've components/com_virtuemart/views/category/tmpl/default.php

But it's the only path...
Where i can change your code ?
Title: Re: References products
Post by: jenkinhill on September 20, 2013, 17:13:26 PM
Well you are using a Gavick template with their override files - you will need to ask Gavick where they put the VM override files if they are not in the normal location.

We cannot provide support for commercial templates as we have no idea how they have coded things.
Title: Re: References products
Post by: airvay on September 21, 2013, 12:45:25 PM
Ok, thankyou.