| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Product Detail Page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Product Detail Page
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
__________________
Shareen sparker2@cox.net http://www.stitches4u.com X-Cart Version 4.5.0 with Smart Template vs 4.4.x |
|||||||
#2
|
|||||||||
|
|||||||||
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
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
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
__________________
Shareen sparker2@cox.net http://www.stitches4u.com X-Cart Version 4.5.0 with Smart Template vs 4.4.x |
|||||||
#4
|
|||||||
|
|||||||
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? |
|||||||
#5
|
|||||||
|
|||||||
Remove Product Details Stuff
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.
__________________
Shareen sparker2@cox.net http://www.stitches4u.com X-Cart Version 4.5.0 with Smart Template vs 4.4.x |
|||||||
#6
|
|||||||||
|
|||||||||
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
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
#7
|
|||||||
|
|||||||
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'}
__________________
Shareen sparker2@cox.net http://www.stitches4u.com X-Cart Version 4.5.0 with Smart Template vs 4.4.x |
|||||||
#8
|
|||||||||
|
|||||||||
Re: Product Detail Page
Pretty sure you can use the same if statement .. As this is standard Smarty syntax...
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#9
|
|||||||||
|
|||||||||
Re: Product Detail Page
You can use the same yes
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#10
|
|||||||
|
|||||||
Re: Product Detail Page
Thank you guys
__________________
Shareen sparker2@cox.net http://www.stitches4u.com X-Cart Version 4.5.0 with Smart Template vs 4.4.x |
|||||||
|
|||
X-Cart forums © 2001-2020
|