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

Add to cart in Product list?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 09-22-2006, 09:46 AM
 
balinor balinor is offline
 

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

Default Re: Add to cart in Product list?

Meant products_t.tpl or products.tpl. As for the commented out code in your template above, you need to replace the commented out code with the code I suggested. It looks like you have it as part of another {if} statement.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #12  
Old 09-22-2006, 11:01 AM
 
brucew brucew is offline
 

Member
  
Join Date: Jan 2006
Posts: 26
 

Default Re: Add to cart in Product list?

I'm sorry, I'm not getting this at all.

I went from this--
Code:
<SELECT name="amount"> {if $product.min_amount le 1} {assign var="start_quantity" value=1} {else} {assign var="start_quantity" value=$product.min_amount} {/if} {section name=quantity loop=$mq start=$start_quantity} <OPTION value="{%quantity.index%}" {if $smarty.get.quantity eq %quantity.index%}selected{/if}>{%quantity.index%}</OPTION> {/section} </SELECT> {/if}

to just this...?

Code:
<INPUT type="hidden" name="amount" value="1">

Nothings happening :\
__________________
-----------------------------------------------
X-Cart Gold 4.0.17
Reply With Quote
  #13  
Old 09-22-2006, 11:02 AM
 
balinor balinor is offline
 

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

Default Re: Add to cart in Product list?

You ahve an extra {if} statement at the end there...don't comment that out. it is very important to make sure that the {if} statements stay in tact.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #14  
Old 09-22-2006, 11:02 AM
 
brucew brucew is offline
 

Member
  
Join Date: Jan 2006
Posts: 26
 

Default Re: Add to cart in Product list?

oooh, wait, you mean the {/if} after </SELECT>?
__________________
-----------------------------------------------
X-Cart Gold 4.0.17
Reply With Quote
  #15  
Old 09-22-2006, 11:05 AM
 
balinor balinor is offline
 

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

Default Re: Add to cart in Product list?

Yes
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #16  
Old 09-22-2006, 11:15 AM
 
brucew brucew is offline
 

Member
  
Join Date: Jan 2006
Posts: 26
 

Default Re: Add to cart in Product list?

Quote:
Originally Posted by balinor
Yes

Balinor. You're a life saver! Totally worked. What I keept doing was placing the new code over two {/if} statements. Why, I don't know.

You don't have to help me anymore, BUUUTTTTT if you could point me in the right direction for getting the prices to show up in the product list, you'd save my weekend. But you've been a tremendous help!
__________________
-----------------------------------------------
X-Cart Gold 4.0.17
Reply With Quote
  #17  
Old 09-22-2006, 11:19 AM
 
balinor balinor is offline
 

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

Default Re: Add to cart in Product list?

They prices should show up in the product list by default? Check the original file (in skin1_original) vs your file and make sure you didn't delete the whole pricing code.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #18  
Old 09-22-2006, 11:57 AM
 
brucew brucew is offline
 

Member
  
Join Date: Jan 2006
Posts: 26
 

Default Re: Add to cart in Product list?

There doesn't seem to be any refrence to price in skin1.css. There are losts of refrences to price in products_t.tpl, though.
I am taking over a website, and having to sort through someone elses work.
__________________
-----------------------------------------------
X-Cart Gold 4.0.17
Reply With Quote
  #19  
Old 09-22-2006, 12:00 PM
 
balinor balinor is offline
 

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

Default Re: Add to cart in Product list?

Price wouldn't be on skin1.css, that only controls the style, not the display of the item. Again, have a look at the original template file in skin1_original and see what is missing.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #20  
Old 09-22-2006, 12:21 PM
 
brucew brucew is offline
 

Member
  
Join Date: Jan 2006
Posts: 26
 

Default Re: Add to cart in Product list?

Sorry, what is the name of the file I'm looking for in skin1_original? It seems like everything is there. Do you have a theory as to what could be missing?
__________________
-----------------------------------------------
X-Cart Gold 4.0.17
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 06:08 AM.

   

 
X-Cart forums © 2001-2020