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

Trying to edit WholeSale Prices to show up and down

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-23-2004, 12:58 PM
  lildawg's Avatar 
lildawg lildawg is offline
 

X-Adept
  
Join Date: Jan 2003
Location: Utah
Posts: 686
 

Default Trying to edit WholeSale Prices to show up and down

When a wholesale customer logs in or anytime you offer a deal using the wholesale prices a new line shows up in the item description that lists the prices. It shows a line for Quantity and then the price for that quantity. The problem is that it lists this from left to right. Which is fine normally but when you have multiple price levels say atleast 5 or more it stretches your site out past the screen resolution. It is controled by the /customer/main/product_prices.tpl file. We are trying to find out how to make it instead of expanding from left to right that instead it list/expand from top to bottom

Currently:
Quantity: 1-6 7-12
Price: $2.95 $2.75

We want it to go:
Qauntity Price
1-6 $2.95
7-12 $2.75

That way it will not stretch out the site when you have more then a few site levels. Anyone help would be appreciated.

We are using 3.5.6 pro. And a example of this is http://www.smilecamusa.com/store/customer/product.php?productid=1&cat=1&page=1
Reply With Quote
  #2  
Old 04-23-2004, 06:11 PM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Try this.

Code:
{if $product_wholesale ne ""} <table border=0 cellpadding=2 cellspacing=2> <tr class=TableHead> <td align=right>Quantity:</td> <td align=right>Price:</td> {section name=wi loop=$product_wholesale} <tr> <td>{$product_wholesale[wi].quantity}{if $smarty.section.wi.last}+{else}-{$product_wholesale[wi].next_quantity}{/if}</td> <td>{include file="currency.tpl" value=$product_wholesale[wi].price}</td> </tr> {/section} </table> {/if}
Reply With Quote
  #3  
Old 04-24-2004, 11:31 AM
  lildawg's Avatar 
lildawg lildawg is offline
 

X-Adept
  
Join Date: Jan 2003
Location: Utah
Posts: 686
 

Default

Worked like a champ. Thanks for the help.
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 01:58 AM.

   

 
X-Cart forums © 2001-2020