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

Showing discounted price

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 01-25-2007, 01:29 PM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: Showing discounted price

hmm...i've tried but maybe it's not within this code. i can only find one line in product.tpl that differs from products.tpl and changing that line doesnt help. sowwy!
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #12  
Old 01-25-2007, 01:52 PM
 
Alexander Whillas Alexander Whillas is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 37
 

Default Re: Showing discounted price

The 'discount' that its calculating here is the difference in 'price' (Market price) and list price (online price). I can't see where it pulls in the discount value and makes a calculation based on this.

I was talking about

1. flagging an item 'Available for global discount',
2. setting the global discount as a provider to a percentage value
3. then hoping to see it affect all the items price from step 1.

Maybe its not possible
__________________
Version 4.1.3 pro
Reply With Quote
  #13  
Old 01-25-2007, 03:41 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Showing discounted price

Quote:
Originally Posted by Alexander Whillas
So,

I've searched here and not found anything that addresses this issue: My client wants to have a sale to clear stock. 30% discount on selected items type thing. I can see the 'discount_avail' flag for a product, but I want to know how I can

a) get the discount value (i.e. 30%)
b) show the modified price when the user is browsing the products not just at the checkout

?

I'm figuring these must be something easy I'm missing here...?

I think (but not sure) that the 'discount_avail' applies to membership level, like if you sell wholesale to certain members (customers). That way "Wholesale" customers would see prices with the dicount applied to the products with the 'discount_avail' and normal pricing on items that it doesn't apply.

Perhaps someone that actually knows for sure will chime in.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #14  
Old 01-25-2007, 03:53 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Showing discounted price

Quote:
Originally Posted by neaisha
nah nah nah....i didnt get it to come out correctly b/c the tables are nested.

the code from products.tpl should be somewhere here...

<snip>

this will display incorrectly but i THINK if you can resolve the table issue, it'll work out fine.

The areas that you are referencing ("Market Price" and "Product Price") are what I was referring to in the other thread ("Specials") http://forum.x-cart.com/showthread.php?t=1144&page=5

The has to be some way to query the database to find products that have a difference and display them, I just don't know how.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #15  
Old 01-26-2007, 01:14 AM
 
Alexander Whillas Alexander Whillas is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 37
 

Default Re: Showing discounted price

Actually, I think you could just hit the 'discounts' table yourself (inthe PHP) for the discount value and then add it to Smarty before calling the template THEN do a calculation. Actually, it would be better to loop over the $products array int he PHP and make a new column called 'discounted price' (or something) and then just reference this in the template.

Boring but it works I guess.
__________________
Version 4.1.3 pro
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 07:25 AM.

   

 
X-Cart forums © 2001-2020