Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Product Detail Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-04-2011, 12:17 PM
 
sparker2 sparker2 is offline
 

eXpert
  
Join Date: Feb 2007
Posts: 290
 

Default 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
Attached Thumbnails
Click image for larger version

Name:	product_details.png
Views:	130
Size:	84.1 KB
ID:	2274  
__________________
Shareen
sparker2@cox.net
http://www.stitches4u.com
X-Cart Version 4.5.0 with Smart Template vs 4.4.x
Reply With Quote
  #2  
Old 01-04-2011, 01:46 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,192
 

Default 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
Reply With Quote
  #3  
Old 01-04-2011, 02:25 PM
 
sparker2 sparker2 is offline
 

eXpert
  
Join Date: Feb 2007
Posts: 290
 

Default 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
Reply With Quote
  #4  
Old 01-05-2011, 05:38 AM
 
Sunray Sales Sunray Sales is offline
 

Senior Member
  
Join Date: Dec 2010
Posts: 194
 

Default 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?
__________________
4.4.2
www.sunraysales.com
HandsOnWebHosting
Reply With Quote
  #5  
Old 01-11-2011, 02:50 PM
 
sparker2 sparker2 is offline
 

eXpert
  
Join Date: Feb 2007
Posts: 290
 

Question 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.
Attached Thumbnails
Click image for larger version

Name:	product_details.png
Views:	106
Size:	84.1 KB
ID:	2317  
__________________
Shareen
sparker2@cox.net
http://www.stitches4u.com
X-Cart Version 4.5.0 with Smart Template vs 4.4.x
Reply With Quote
  #6  
Old 01-13-2011, 04:41 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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
Reply With Quote

The following user thanks qualiteam for this useful post:
sparker2 (01-13-2011)
  #7  
Old 01-13-2011, 08:01 AM
 
sparker2 sparker2 is offline
 

eXpert
  
Join Date: Feb 2007
Posts: 290
 

Default 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
Reply With Quote
  #8  
Old 01-13-2011, 08:06 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default 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
Reply With Quote
  #9  
Old 01-13-2011, 09:18 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,192
 

Default Re: Product Detail Page

You can use the same yes
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #10  
Old 01-13-2011, 12:34 PM
 
sparker2 sparker2 is offline
 

eXpert
  
Join Date: Feb 2007
Posts: 290
 

Default 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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:39 AM.

   

 
X-Cart forums © 2001-2020