Hello,
Is there a easy way of adding a manual option for cost price, postage and RRP into the product data field (ideally above price) which wont appear in the front end?
This will make it easier when I export/import my product list for price changes etc and also means its all stored in 1 document rather then various
Thanks
Is there a easy way of adding a manual option for cost price, postage and RRP into the product data field (ideally above price) which wont appear in the front end?
This will make it easier when I export/import my product list for price changes etc and also means its all stored in 1 document rather then various
Thanks
-----
Opencart Version = v2.3.0.2
Theme = SimpleONE Boxed
Why not use the unused fields such as 'location' and EAN for example.
You can rename them in the language file for easier understanding ->admin>language>en-gb->catalog>product.php
You can rename them in the language file for easier understanding ->admin>language>en-gb->catalog>product.php
Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+
Thanks!
Hi Artcore,
Fantastic idea (I checked the comparison and product pages and obviously SKU / EAN / Location etc is not displayed.
anyhow I changed the Location to Cost Price in Product.php (2 lines) and when editing a product it says "entry_location" rather then cost price.
Any ideas?
Fantastic idea (I checked the comparison and product pages and obviously SKU / EAN / Location etc is not displayed.
anyhow I changed the Location to Cost Price in Product.php (2 lines) and when editing a product it says "entry_location" rather then cost price.
Any ideas?
-----
Opencart Version = v2.3.0.2
Theme = SimpleONE Boxed
Did you change $_['entry_location'] = 'Location'; to $_['entry_location'] = 'Cost Price'; in exactly that way? Than it should work but maybe you need to refresh ocmod cache.
As for displaying the other columns to the product.tpl, see attached changes to controller/product/product.php
You can echo them in the tpl by using <?php echo $cost_price; ?> for example
A currency formatted output can be done like this:
$data['cost_price'] = $this->currency->format($product_info['location'], $this->session->data['currency']); But you can just write $100.00 in the location field of course if you have one language/currency
As for displaying the other columns to the product.tpl, see attached changes to controller/product/product.php
You can echo them in the tpl by using <?php echo $cost_price; ?> for example
A currency formatted output can be done like this:
$data['cost_price'] = $this->currency->format($product_info['location'], $this->session->data['currency']); But you can just write $100.00 in the location field of course if you have one language/currency
Attachments
Screenshot_2017-04-22-12-23-31.jpg (554.85 KiB) Viewed 930 times
Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+
Thanks!
Who is online
Users browsing this forum: No registered users and 39 guests