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

Add variants to products page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-04-2005, 01:45 PM
 
Khar Khar is offline
 

Advanced Member
  
Join Date: Nov 2004
Posts: 57
 

Default Add variants to products page

How can I add my product variants to the products page. When you create a variant it only appears in the details.
__________________
tekmind

X-cart 4.0.7 [unix]
Reply With Quote
  #2  
Old 02-09-2005, 01:38 PM
 
Khar Khar is offline
 

Advanced Member
  
Join Date: Nov 2004
Posts: 57
 

Default

No one has any ideas on this.
If I comment out this code in the product.tpl my variants go away so I know this is the code that I'm looking for.

Code:
{if $active_modules.Product_Options ne ""}
{ include file="modules/Product_Options/customer_options.tpl"}
{/if}

I think I need to put it in the products.tpl but I've had no luck . Is this the right .tpl to place it in? I want it to show in the products page.
__________________
tekmind

X-cart 4.0.7 [unix]
Reply With Quote
  #3  
Old 02-09-2005, 10:44 PM
 
Grumpy Grumpy is offline
 

Member
  
Join Date: Jan 2005
Location: Australia
Posts: 26
 

Default Variants

Can you explain a little more what it is you are trying to achieve?

Cheers
__________________
GerryB
Xcart 4.0.11
____________
Remember not to forget that which you do not need to know.
Reply With Quote
  #4  
Old 02-10-2005, 03:21 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

I believe he wants the product options to show up on the products page in addition to the product detail page....
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 02-11-2005, 03:05 PM
 
Khar Khar is offline
 

Advanced Member
  
Join Date: Nov 2004
Posts: 57
 

Default

Yes.
I apologize for not using the correct term. That is exactly what I'm trying to achieve.
__________________
tekmind

X-cart 4.0.7 [unix]
Reply With Quote
  #6  
Old 02-11-2005, 04:45 PM
 
Grumpy Grumpy is offline
 

Member
  
Join Date: Jan 2005
Location: Australia
Posts: 26
 

Default Products

Yes, thats where the fields should be placed. How much detail do you want to show in this area. Back your system up fully before making any change so that you have a point to restart from in case you get into trouble. Try experimenting with 1 field at a time.

Cheers
__________________
GerryB
Xcart 4.0.11
____________
Remember not to forget that which you do not need to know.
Reply With Quote
  #7  
Old 02-18-2005, 02:45 PM
 
Khar Khar is offline
 

Advanced Member
  
Join Date: Nov 2004
Posts: 57
 

Default

Quote:
Originally Posted by Khar
No one has any ideas on this.
If I comment out this code in the product.tpl my variants go away so I know this is the code that I'm looking for.

Code:
{if $active_modules.Product_Options ne ""}
{ include file="modules/Product_Options/customer_options.tpl"}
{/if}

I think I need to put it in the products.tpl but I've had no luck . Is this the right .tpl to place it in? I want it to show in the products page.


I've had no luck with this.

Am I forgetting some tags before or after this code?
I imagine this is fairly simple.

Thanks
__________________
tekmind

X-cart 4.0.7 [unix]
Reply With Quote
  #8  
Old 02-18-2005, 02:48 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

It is not as simple as it looks, you can't just call the product options template because that template is written to be part of the product.tpl page. You would have to make a copy of customer_options.tpl and edit the code to be specific to the productS array instead of the product page.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 02-18-2005, 03:01 PM
 
Khar Khar is offline
 

Advanced Member
  
Join Date: Nov 2004
Posts: 57
 

Default

Quote:
Originally Posted by balinor
It is not as simple as it looks, you can't just call the product options template because that template is written to be part of the product.tpl page. You would have to make a copy of customer_options.tpl and edit the code to be specific to the productS array instead of the product page.

OK that answers some of my questions like why I haven't been able to get any were with this and why no one has been able to simply say put this code here.

Thanks for the help. I think I'll save this for later.
Now I can stop pulling my hair out.
__________________
tekmind

X-cart 4.0.7 [unix]
Reply With Quote
  #10  
Old 02-18-2005, 05:19 PM
 
Grumpy Grumpy is offline
 

Member
  
Join Date: Jan 2005
Location: Australia
Posts: 26
 

Default Extra Details

You need to find the details of each item you wish to display in the product.tpl and copy these into products.tpl.

A safe way to do it is to create a new file called myproducts.tpl copy products.tpl to it, then slowly implement the changes needed.

Don't forget to change search.tpl and categories.tpl to now call myproducts.tpl.
__________________
GerryB
Xcart 4.0.11
____________
Remember not to forget that which you do not need to know.
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 05:48 AM.

   

 
X-Cart forums © 2001-2020