Give more details about fields.
Last edited by oc-extensions on Sat Jun 30, 2012 9:46 pm, edited 1 time in total.
Can you not use model for one and sku for the other?
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
That means you need to change structure of table "product" and add new fileds.
After that change admin/controller/product.php and template file for new fields.
Also in catalog/model/catalog/product.php you need to change addProduct , editProduct function.
In front side changes needed in catalog/controller/product/product.php and template file.
After that change admin/controller/product.php and template file for new fields.
Also in catalog/model/catalog/product.php you need to change addProduct , editProduct function.
In front side changes needed in catalog/controller/product/product.php and template file.
If you're happy to pay for this, I can do this for you in about half an hour.
PM if you're interested.
PM if you're interested.
here is an extension to do what you want http://www.opencart.com/index.php?route ... order=DESC
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
As labeshops said there are fields that you could convert them to any need, like sku and model fields, and more of these since OC 1.5.4 there are plenty new fields in product form and in case you wouldn't cover all of them already, just change them the description in the language file (both admin and catalog). Now to also display them in the product.tpl (that is the front product page), you have just to echo and define them, as they are already indexed in the model file.
Open the product.tpl from the catalog/view/product.tpl with notepad++ (free) and find the line where the model is already called. Should be like:
add how many fields you like (all examples taken from OC 1.5.4+ default installation)
Now you have to define these new lines. So open up the catalog /controller/product.php and
find
add the needed values
In the same file find also
Add lines with sku, ean ....and so on. That is for defining the language.
And the last file to edit is catalog/language/yourlanguage/product.php
add
it is not so hard even for a novice (as I am :=))
Open the product.tpl from the catalog/view/product.tpl with notepad++ (free) and find the line where the model is already called. Should be like:
Code: Select all
<?php echo $model; ?>
Code: Select all
<?php echo $sku; ?>
<?php echo $ean; ?>
<?php echo $jan; ?>
<?php echo $isbn; ?>
<?php echo $mpn; ?>
.....
find
Code: Select all
$this->data['model'] = $product_info['model'];
Code: Select all
$this->data['sku] = $product_info['sku];
$this->data['ean'] = $product_info['ean'];
.... and so on
Code: Select all
$this->data['text_model'] = $this->language->get('text_model');
And the last file to edit is catalog/language/yourlanguage/product.php
add
Code: Select all
$_['text_sku'] = 'some name here';
$_['text_ean'] = 'another name here';
.... so on
Who is online
Users browsing this forum: No registered users and 392 guests