Code: Select all
if ((strlen(utf8_decode($this->request->post['model'])) < 3) || (strlen(utf8_decode($this->request->post['model'])) > 24)) {
$this->error['model'] = $this->language->get('error_model');
}
Then, in "admin/view/template/catalog/product_form.tpl" (lines 38 to 42) find:
Code: Select all
<td><input type="text" name="model" value="<?php echo $model; ?>" />
<br />
<?php if ($error_model) { ?>
<span class="error"><?php echo $error_model; ?></span>
<?php } ?></td>
Code: Select all
<td><input type="text" name="model" value="<?php echo $model; ?>" /></td>
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Code: Select all
<tr>
<td><b><?php echo $text_model; ?></b></td>
<td><?php echo $model; ?></td>
</tr>
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
coolnammy1 wrote:What if I just want to remove it from the product page at the store front? ...
If you also wish to remove it from category pages, latest products (on the homepage), manufacturers, search, and special offer pages, you will also need to edit the following files:-fido-x wrote:In "catalog/view/theme/TEMPLATE_NAME/template/product/product.tpl", remove the following code (lines 25 to 28):-Code: Select all
<tr> <td><b><?php echo $text_model; ?></b></td> <td><?php echo $model; ?></td> </tr>
catalog/view/theme/TEMPLATE_NAME/template/common/home.tpl
catalog/view/theme/TEMPLATE_NAME/template/product/category.tpl
catalog/view/theme/TEMPLATE_NAME/template/product/manufacturer.tpl
catalog/view/theme/TEMPLATE_NAME/template/product/search.tpl
catalog/view/theme/TEMPLATE_NAME/template/product/special.tpl
Look for-
Code: Select all
<span style="color: #999; font-size: 11px;"><?php echo $products[$j]['model']; ?></span><br />
Clear you cache (system/cache) by deleting all files except "index.html".coolnammy1 wrote:I tried to remove it from the .tpl file only, but it's not going through.
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Days Gone By Antiques & Collectibles
FREE Continental US Shipping! Great gift ideas for ANY time of year!
Days Gone By Antiques & Collectibles
FREE Continental US Shipping! Great gift ideas for ANY time of year!
Days Gone By Antiques & Collectibles
FREE Continental US Shipping! Great gift ideas for ANY time of year!
After rebuilding my store, I tried this again and could not get it to work. No error messages or anything, I just could not add any products to my store, I didn't get that green 'success' message.fido-x wrote:In "admin/controller/catalog/product.php" (lines 881 to 883), find:And comment this out.Code: Select all
if ((strlen(utf8_decode($this->request->post['model'])) < 3) || (strlen(utf8_decode($this->request->post['model'])) > 24)) { $this->error['model'] = $this->language->get('error_model'); }
Then, in "admin/view/template/catalog/product_form.tpl" (lines 38 to 42) find:and change to:Code: Select all
<td><input type="text" name="model" value="<?php echo $model; ?>" /> <br /> <?php if ($error_model) { ?> <span class="error"><?php echo $error_model; ?></span> <?php } ?></td>
This will then make the "model" optional.Code: Select all
<td><input type="text" name="model" value="<?php echo $model; ?>" /></td>

Days Gone By Antiques & Collectibles
FREE Continental US Shipping! Great gift ideas for ANY time of year!
Instead of removing it, can you just comment it out?fido-x wrote:In "catalog/view/theme/TEMPLATE_NAME/template/product/product.tpl", remove the following code (lines 25 to 28):-Code: Select all
<tr> <td><b><?php echo $text_model; ?></b></td> <td><?php echo $model; ?></td> </tr>
Days Gone By Antiques & Collectibles
FREE Continental US Shipping! Great gift ideas for ANY time of year!
any ideas??
Users browsing this forum: Google [Bot] and 7 guests