- Posts: 88
- Thank you received: 0
Displaying Product Weight on front end
- wonderwilson
-
Topic Author
- Offline
Less
More
15 years 2 weeks ago #25725
by wonderwilson
Displaying Product Weight on front end was created by wonderwilson
Please Log in or Create an account to join the conversation.
15 years 2 weeks ago #25730
by nicolas
Replied by nicolas on topic Re: Displaying Product Weight on front end
Hi,
Yes you will need to edit view files via the menu Display->Views.
For that products listing page, you will need to edit the file "listing_img_title" of the view "product". Adding such information is quite easy as it is already loaded from the database:
echo $this->row->product_weight;
echo $this->row->CUSTOM_FIELD_COLUMN_NAME;
For the product page, it's the file "show" of the view "product" with the variable $this->element instead of $this->row.
Yes you will need to edit view files via the menu Display->Views.
For that products listing page, you will need to edit the file "listing_img_title" of the view "product". Adding such information is quite easy as it is already loaded from the database:
echo $this->row->product_weight;
echo $this->row->CUSTOM_FIELD_COLUMN_NAME;
For the product page, it's the file "show" of the view "product" with the variable $this->element instead of $this->row.
Please Log in or Create an account to join the conversation.
- wonderwilson
-
Topic Author
- Offline
Less
More
- Posts: 88
- Thank you received: 0
15 years 2 weeks ago #25733
by wonderwilson
Replied by wonderwilson on topic Re: Displaying Product Weight on front end
Brilliant, thanks Nicholas.
On another matter - how do I upgrade to the Business edition without loosing any of the CSS, products or customisation?
Thanks
Darren
On another matter - how do I upgrade to the Business edition without loosing any of the CSS, products or customisation?
Thanks
Darren
Please Log in or Create an account to join the conversation.
15 years 2 weeks ago #25734
by nicolas
Replied by nicolas on topic Re: Displaying Product Weight on front end
If you do your modifications via the interface, you won't loose anything as the view files and CSS modifications are stored as overrides and are not updated (only the core file is updated). Products information is of course not affected by updates.
Please Log in or Create an account to join the conversation.
Time to create page: 0.150 seconds