X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Product Detail Page (https://forum.x-cart.com/showthread.php?t=57361)

sparker2 01-04-2011 12:17 PM

Product Detail Page
 
1 Attachment(s)
I posted this to X-Cart Smart Template v4.4.x also for forgive me if you happen to see it twice. I was not sure if this is part of Smart Template v4.4.x or X-cart.

Hello everyone. I need some help please. I am trying to remove information from my product details page for one category only using {if $current_category.categoryid ne '29'} which worked in version 4.3 but I am having the hardest time getting everything removed in version 4.4.1 using smart template.
This is a category that I use to issue free downloads to registered customers only via a download like that i will be adding using a product download mod. Price would be free so there is no need to have a price listed and Quantity is not necessary.
The things I need removed are (Add to cart button, Quantity label and Quantity drop-down box, I have included a picture showing you what is left that I need removed in hopes that one of you lovely members can help me. These are the things we have to go through when upgrading this cart and it is not fun, having to start all over. :(

I want to thank all of you who take the time to help people. You guys are truly a blessing. Thanks in advance for your continued help. Shareen

cflsystems 01-04-2011 01:46 PM

Re: Product Detail Page
 
Use the Webmaster mode to find out which template exactly is this. If not part of the smart template system then make sure you are editing the correct file - 4.4.x has duplicate files depending on the skin you use

sparker2 01-04-2011 02:25 PM

Re: Product Detail Page
 
Thank you for your reply. Yes, this version has a lot of duplicate files and I think that is the major problem. I am editing the wrong files. Webmaster is not a lot of help to me. It does not tell you detail information and location about everything. It sure we be nice if x-cart came with a better manual that list all these objects so people like can make simple changes without messing up the whole cart and wasting days on this. Thanks again. I will continue to play with this until someone comes up with more instruction on how this is done. Thanks again for your reply. Shareen

Sunray Sales 01-05-2011 05:38 AM

Re: Product Detail Page
 
Yah 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

If you are using CommonFiles then you are not modifying the right tpl file. Confusing eh?

sparker2 01-11-2011 02:50 PM

Remove Product Details Stuff
 
1 Attachment(s)
Can some one help me hide the Add to Cart, Wish List, Quantity drop-down for one product category only using the if statement. This category is #29. Also this same category contains free downloads that are priced at 0.00, it is showing no price, only an empty box i guess to type in a price. I just want it to say Free in place of the empty box. I was using the (If) statement {if $current_category.categoryid ne '29'} in version 4.3 to hide this stuff but I cannot get this to remove everything in version 4.4.1. Not sure which files to edit. This may be because I am using the Smart Template which just confused me even more. There are now duplicate files all over the place.

Thank you very much in advance for your help.

qualiteam 01-13-2011 04:41 AM

Re: Product Detail Page
 
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

sparker2 01-13-2011 08:01 AM

Re: Product Detail Page
 
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'}

chamberinternet 01-13-2011 08:06 AM

Re: Product Detail Page
 
Pretty sure you can use the same if statement .. As this is standard Smarty syntax...

cflsystems 01-13-2011 09:18 AM

Re: Product Detail Page
 
You can use the same yes

sparker2 01-13-2011 12:34 PM

Re: Product Detail Page
 
Thank you guys


All times are GMT -8. The time now is 08:26 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.