Post by kevtheirish » Wed Nov 06, 2019 9:02 am

So I wanted to remove "Product code" and brand from the product page, and I was able to remove part of it by editing catalog/controller/product from

Code: Select all

$this->load->model('catalog/review');

			$data['tab_review'] = sprintf($this->language->get('tab_review'), $product_info['reviews']);

			$data['product_id'] = (int)$this->request->get['product_id'];
			$data['manufacturer'] = $product_info['manufacturer'];
			$data['manufacturers'] = $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $product_info['manufacturer_id']);
			$data['model'] = $product_info['model'];
			$data['reward'] = $product_info['reward'];
			$data['points'] = $product_info['points'];
			$data['description'] = html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8');
to:

Code: Select all

$this->load->model('catalog/review');

$this->load->model('catalog/review');

			$data['tab_review'] = sprintf($this->language->get('tab_review'), $product_info['reviews']);

			$data['product_id'] = (int)$this->request->get['product_id'];
			$data['reward'] = $product_info['reward'];
			$data['points'] = $product_info['points'];
			$data['description'] = html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8');
but Product Code: still shows up under the item title? any ideas how to remove this?
Image


Also,

on the page /index.php?route=checkout/cart

how would I remove/hide the Model box ?
Last edited by kevtheirish on Thu Nov 07, 2019 8:24 am, edited 1 time in total.

Active Member

Posts

Joined
Mon Jan 16, 2012 2:58 am

Post by letxobnav » Wed Nov 06, 2019 1:34 pm

catalog/view/theme/default/template/product.twig

Code: Select all

<li>{{ text_model }} {{ model }}</li>
should be

Code: Select all

{% if model %}
<li>{{ text_model }} {{ model }}</li>
{% endif %}

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by kevtheirish » Thu Nov 07, 2019 8:47 am

edited as suggested, the model still shows up on the checkout page and Product Code: still shows up on the index.php?route=checkout/cart page


also is there a way to get mystore.com/index.php?route=checkout/cart to display as mystore.com/checkout ? I have SEO URL enabled, as well as .htaccess.text renamed to .htaccess
SEO URLs currently working on categories and products

Active Member

Posts

Joined
Mon Jan 16, 2012 2:58 am

Post by letxobnav » Thu Nov 07, 2019 7:41 pm

for what purpose?

It is called Search Engine Optimization for a reason, as there is no indexing of any checkout page, using an SEO url for those is futile.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan
Who is online

Users browsing this forum: No registered users and 53 guests