- Posts: 25
- Thank you received: 2
Editing View for Custom Front End Product Display
- saejangracer
-
Topic Author
- Offline
Less
More
9 years 11 months ago #252676
by saejangracer
Site building and troubleshooting
www.hikashop.com/forum/product-category-...product-display.html (open)
Editing View for Custom Front End Product Display was created by saejangracer
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Chrome 53.0.2785.143
Hi Hikashop,
I understand that under the standard product view, the "hikashop_product_left_part" is a span6 column containing the product images, and the "hikashop_product_right_part" is another span6 column containing the listing price, stock quantity and add to cart button.
What I want to do is to NOT display the "hikashop_product_right_part" but instead replace it with the "hikashop_product_bottom_part" (which is the description of the product) as a span6 column FOR ONE category only (the Billboard category). That means for the Billboard category, there is NO listing price, NO stock quantity, and NO add to cart, but in that place it will show the DESCRIPTION instead.
I understand I should add some PHP code at Views -> Product -> Show, but what should I be adding in order to restrict the special view to ONE category only?
Thank you!
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Chrome 53.0.2785.143
Hi Hikashop,
I understand that under the standard product view, the "hikashop_product_left_part" is a span6 column containing the product images, and the "hikashop_product_right_part" is another span6 column containing the listing price, stock quantity and add to cart button.
What I want to do is to NOT display the "hikashop_product_right_part" but instead replace it with the "hikashop_product_bottom_part" (which is the description of the product) as a span6 column FOR ONE category only (the Billboard category). That means for the Billboard category, there is NO listing price, NO stock quantity, and NO add to cart, but in that place it will show the DESCRIPTION instead.
I understand I should add some PHP code at Views -> Product -> Show, but what should I be adding in order to restrict the special view to ONE category only?
Thank you!
Site building and troubleshooting
www.hikashop.com/forum/product-category-...product-display.html (open)
Please Log in or Create an account to join the conversation.
9 years 11 months ago #252684
by nicolas
Replied by nicolas on topic Editing View for Custom Front End Product Display
Hi,
You don't need any code for that.
Edit the "show_default" view file via the menu Display>Views. That's the default view which display the product page.
There, change the name of the file in the top field to something else and save.
Then, in the category where you want a different layout, select that new layout in the "layout on product page" setting of your category.
That way, the products of that category will automatically use that new layout that you can customize in the menu Display>Views, independently of the original one which will still be used elsewhere.
You don't need any code for that.
Edit the "show_default" view file via the menu Display>Views. That's the default view which display the product page.
There, change the name of the file in the top field to something else and save.
Then, in the category where you want a different layout, select that new layout in the "layout on product page" setting of your category.
That way, the products of that category will automatically use that new layout that you can customize in the menu Display>Views, independently of the original one which will still be used elsewhere.
The following user(s) said Thank You: saejangracer
Please Log in or Create an account to join the conversation.
- saejangracer
-
Topic Author
- Offline
Less
More
- Posts: 25
- Thank you received: 2
9 years 11 months ago #252740
by saejangracer
Site building and troubleshooting
www.hikashop.com/forum/product-category-...product-display.html (open)
Replied by saejangracer on topic Editing View for Custom Front End Product Display
Hi nicolas,
Thank you! That's a useful function
Thank you! That's a useful function
Site building and troubleshooting
www.hikashop.com/forum/product-category-...product-display.html (open)
Please Log in or Create an account to join the conversation.
Time to create page: 0.190 seconds