Product SKU

Rate this topic: Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.3.50 out of 6 based on 2 vote(s)
GK User
Tue Oct 29, 2013 6:33 pm
Reply with quote
Report this post
Hi there

We want to have available in the item page it's "Product SKU". is this possible to complete within this template?

Thanks in advanced.
User avatar
Expert Boarder

GK User
Tue Oct 29, 2013 10:01 pm
Reply with quote
Report this post
Sorry, but I'm not VM specialist - what is SKU?
If it is available in standard template (Beeze) and not in ours, please provide more detailed information and will prepare a fox for you.
User avatar
Moderator

GK User
Sat Nov 02, 2013 4:10 pm
Reply with quote
Report this post
Cyberek wrote:Sorry, but I'm not VM specialist - what is SKU?
If it is available in standard template (Beeze) and not in ours, please provide more detailed information and will prepare a fox for you.


The product SKU is the product # that we add when we create a product in VirtueMart, is like it's unique name. Is also, like a reference number or the product number given by the supplier.

We want it to be displayed on the product description page. We already made it possible to be searchable, but our client want that # to be visible.

Thanks in advance
User avatar
Expert Boarder

GK User
Mon Nov 04, 2013 4:53 pm
Reply with quote
Report this post
Ok, this is more VM specific question than our template - please ask there how to display this information, and reply with this piece of information. Then please describe where You would like this SKU to be rendered and Ill show you which file and where to edit.
User avatar
Moderator

GK User
Fri Dec 20, 2013 7:03 pm
Reply with quote
Report this post
Cyberek wrote:Ok, this is more VM specific question than our template - please ask there how to display this information, and reply with this piece of information. Then please describe where You would like this SKU to be rendered and Ill show you which file and where to edit.


Here is the code we need to display the Product SKU in the product detail page

Code: Select all
<?php echo $this->product->product_sku ?>


We want to display the product SKU to the left of the rating in the product detail page.

Thanks in advance.

If you want to displays other fields in the product details page on VirtueMart follow this link: http://forum.virtuemart.net/index.php?topic=92756.0
User avatar
Expert Boarder

GK User
Thu Jan 02, 2014 7:17 pm
Reply with quote
Report this post
Sorry for the late replay. Could you post a link to your site - to a single product page?
User avatar
Moderator

GK User
Thu Jan 02, 2014 7:28 pm
Reply with quote
Report this post
To make things a little bit faster - this should work fine:
please edit file:
templates/gk_shop_and_buy/html/com_virtuemart/productdetails/default.php
Now find this part:
Code: Select all
                  <?php if($this->showRating || (VmConfig::get('show_manufacturers', 1) && !empty($this->product->virtuemart_manufacturer_id)) || (VmConfig::get('show_emailfriend') || VmConfig::get('show_printicon') || VmConfig::get('pdf_button_enable'))): ?>
                        <div class="product-additional-info">
                              <?php if($this->showRating){


And change it to:
Code: Select all
                  <?php if(1==1): ?>
                        <div class="product-additional-info">
                              <span class="sku"><?php echo $this->product->product_sku ?></span>
                              <?php if($this->showRating){



Now the only thing left is to add some spacing:
Please edit: /templates/gk_shop_and_buy/css/override.css and add at its end:
Code: Select all
span.sku {
margin: 0 10px 0 0;
}

Remember to enable "CSS override" in template settings - advanced section.
User avatar
Moderator


cron