网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   X-Cart (https://www.0058.net/forumdisplay.php?f=70)
-   -   Different Product Detail Page (https://www.0058.net/showthread.php?t=5159)

Harney 2015-06-10 11:04 PM

Different Product Detail Page
 
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...


All times are GMT +8. The time now is 03:44 AM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.