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

Change Quantity and update price

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-27-2009, 02:37 PM
 
VinceAvando VinceAvando is offline
 

Newbie
  
Join Date: Oct 2009
Posts: 4
 

Default Change Quantity and update price

Hi there,

I am sure I have seen this particularly requirement before on previous versions of xcart.. so assume it is simple to do.

I need to make it so on the product details page, when the quantity is changed, the price displayed on the page is updated (either automatically or via an update button) so if the item costs $50 each, and the quantity is set to 10, is shows the cost to be $500.

Any ideas on how I can do this, I tried to copy and paste the code from the "cart.php" page which has this on it, but it didn't work.

Any help would be greatly appreciated.

Regards,

Vince
__________________
4.2.1
Reply With Quote
  #2  
Old 11-02-2009, 06:14 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Change Quantity and update price

The problem is, if you change the price according to how many of a product a customer purchases ( 1=$50,10=$500) then when the customer goes to their shopping cart they will see 10 items ordered at $500 each for a total of $5000. Are you sure this is what oyu want to do?
__________________
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
  #3  
Old 11-03-2009, 02:05 PM
 
VinceAvando VinceAvando is offline
 

Newbie
  
Join Date: Oct 2009
Posts: 4
 

Default Re: Change Quantity and update price

Hi Jwait,

Thanks for your email.

But how about if it only shows the price changing, but doesn't store the saved price when it goes through to the cart.

There must be some way of doing this.

how else can someone know the cost of a certain quantity on the product detail page.

Regards,

vince
__________________
4.2.1
Reply With Quote
  #4  
Old 11-03-2009, 02:59 PM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Change Quantity and update price

I don't understand why you would want to do this? If the product is $50 regardless of how many a customer buys there is no reason to change anything. If you had the option of a customer buying 10 and getting a discount, then that is something else entirely. and you can do that through the product options section.

You also have the option of having the customer adding something to their cart and remaining on the same page they are on, or being sent to the cart when they add a product where it shows the total for the items they added.
__________________
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
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 11:36 AM.

   

 
X-Cart forums © 2001-2020