Post by aleshq » Wed Aug 10, 2016 2:24 am

Hi! I'm newbie with opencart and my English is bad, but.. I have a question ;D
How to show SKU, Location, Dimensions and Weight to users?
Will be nice, if someone will help me ;)

Newbie

Posts

Joined
Wed Aug 10, 2016 2:18 am

Post by straightlight » Wed Aug 10, 2016 4:45 am

Welcome to the Opencart forum. Would it be possible to clarify on where on Opencart you would like to show these subjects on your site exactly?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by magikcommerce » Wed Aug 10, 2016 1:42 pm

Do you want to display SKU, Location, and Weight on the product page?

If you want it to display SKU, Location, and Weight on product page
Go to catalog/controller/product/product.php
Find

Code: Select all

if ($product_info) {
Add below code inside if condition

Code: Select all

$data['weight']=$product_info['weight'];
$data['location']=$product_info['location'];
$data['sku']=$product_info['sku'];

Go to catalog/view/theme/(your theme)/template/productt/product.tpl, add below lines where you want to display SKU, Location and Weight

Code: Select all

<?php echo $weight; ?>
<?php echo $location; ?>
<?php echo $sku; ?>
Editing the default theme directly is the wrong way to do this, really you should use a vQmod or oCmod.

Browse large collection of Premium OpenCart Themes


User avatar
New member

Posts

Joined
Mon Feb 09, 2015 5:55 pm
Location - San Jose, CA

Post by aleshq » Wed Aug 10, 2016 2:30 pm

Problem solved already ;D Found attribute groups tab. Thanks for helping

Newbie

Posts

Joined
Wed Aug 10, 2016 2:18 am
Who is online

Users browsing this forum: No registered users and 4 guests