Log in

View Full Version : Different Product Detail Page


Harney
2015-06-10, 11:04 PM
I have played with 4.3.1 and I found it quite easy to find the correct files to modify. But with 4.4.1 everything is literally duplicated which does make it much more difficult to customize.

To answer you question regarding editing the product details page, this is where I did it.
/xcart/skin/2-columns/customer/main/product_details.tpl

Hatfield
2015-06-10, 11:08 PM
Yes, in 4.4.x the template structure has been changed.

The main idea is: each skin can have its own templates... inside its own directory, which overwrites the common ones "on the fly".

The customization should simplify the upgrade and reduce the changes to the "common", or, in other words, "core" templates.

For example you need to change the product page in 2-column template.

There is no skin/2-columns/customer/main/product.tpl template, thus the skin/common_files/customer/main/product.tpl is the one.

The safe way is:
1. copy skin/common_files/customer/main/product.tpl to skin/2-columns/customer/main/
2. make the necessary changes to skin/2-columns/customer/main/product.tpl

Heafford Junction
2015-06-10, 11:09 PM
Thank you for your reply. Can I use the same if statement that I used in version 4.3 or has the code changed? What I used was:

{if $current_category.categoryid ne '29'}

Herculaneum
2015-06-10, 11:10 PM
Pretty sure you can use the same if statement .. As this is standard Smarty syntax...