On the product page I want to display the SKU so customer can see is a price is for a box, bottle, meter or strip....
Is there an easy way to add this field on the default product page right below the price??
Thanks for helping me
Rene
http://www.plintenshop.nl
open cart 2.0.2.0
I add the SKU above the price like in the pic. Just a suggestion.
Total e-commerce newbie bravely testing OC v2.0.3.1 before rolling it live...getting there slowly, somehow. Maybe not. I dunno.
1. Open file product.php at catalog/controller/product/product.php
2. Find :
Code: Select all
$data['text_model'] = $this->language->get('text_model');
Code: Select all
$data['text_sku'] = $this->language->get('text_sku');
Code: Select all
$data['model'] = $product_info['model'];
Code: Select all
$data['sku'] = $product_info['sku'];
7. Find :
Code: Select all
$_['text_model'] = 'Product Code:';
Code: Select all
$_['text_sku'] = 'SKU:';
10. Find :
Code: Select all
<li><?php echo $text_model; ?> <?php echo $model; ?></li>
Code: Select all
<?php if ($sku) { ?>
<li><?php echo $text_sku; ?> <?php echo $sku; ?></li>
<?php } ?>
Are you using the default theme?Iamdbat wrote:Could I also ask - what about the 'Was £4.99' - NOW £2.49 part ... I'd be interested in that
Maybe I can make a modification for that.
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
or just download this, to try it out, without touching the Source Code:nosecret wrote:For english and default theme, you can try this guide
http://www.opencart.com/index.php?route ... n_id=22812
should work with OC-Version 2.0.3.1, with others possibly as well...
Good Luck
Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
As I wrote, just recently, in another Theme, related to VqMod's, there is NO simpler way, to find out, how and where to 'interact', manually, in Source Files, do make some Modifications, thereby avoiding an extra VqMod.Iamdbat wrote:I would prefer code and not extensions if at all possible I have lost faith in Opencart extensions altogether because there is no qualty control for them to work in unison so ... code ... just code
I tried to explain it here:
http://forum.opencart.com/viewtopic.php?f=21&t=145232
Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
What kind of reason is that, by changing the codes you are doing exactly what vqmod does albeit in a different and more efficient way so how is your method of modifying core file any way better than a vqmod ? even in your method you cannot achieve "to work in unison" if 2 functions are going to call the same script line from the core file.Iamdbat wrote:I would prefer code and not extensions if at all possible I have lost faith in Opencart extensions altogether because there is no qualty control for them to work in unison so ... code ... just code
Using vqmod is better because of the switch off function so troubleshooting becomes very fast and very simple and any changes if required can be done on the fly. So Long live Vqmod.
Regards,
Sun Systems
Industrial Electronics and Instrumentation
Users browsing this forum: No registered users and 8 guests