| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Quantity change -> price change | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I always found this a bit strange:
why isn't the price changing as well when you change the quantity on the product page? Now when you select 100 as quantity for a product that costs let's say 10 dollars a piece, the product price shown still remains 10 dollars while it should be 10 x 100 = 1000 dollars. You might say this is because that's the way X-Cart functions, but that isn't correct; when a product has options/price modifiers and you select one of those options, you see the price changing. Is there anybody who knows how to get this done?
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#2
|
|||||||
|
|||||||
![]() But the price per item doesn't change! Some people only want to know price per item, and they expect the cart to do the math for them at checkout. You could always add a display variable - that does the math. Edit product.tpl and add a smarty equation for the item price * quantity -- hold on -- that won't work without some ajax or js, since how will smarty know what the qty is? Sounds like a late-night project for someone (not me).
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#3
|
|||||||||
|
|||||||||
![]() ![]() Thanks for the reply; I understand what you're saying with 'But the price per item doesn't change! Some people only want to know price per item ...' that crossed my mind as well but it somehow doesn't 'feel' right that the price stays the same; customers will understand that when they change quantity a changed price is the consequence/result. Heck, it's also viewable in the cart and on the invoice. Makes no sense imo that this quantity price is only shown in the cart and further on ... When you're at a gas station you're also used that the price changes with the gallons rising right? Would be 'interesting' when you'd only see the total price when paying at the pay-desk ![]() I'll ask X-Cart, I think this is a typical task for js
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#4
|
|||||||
|
|||||||
![]() Quote:
I've never seen any shopping cart, anywhere, that calculates the total cost of an item until an item is added to the cart. Show me an example! It sounds like youa re looking for a real-time method of applying qty from the pulldown into a displayed item price... I thik you may be able to accomplish that with js.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#5
|
|||||||
|
|||||||
![]() This gets even more complex if you have price breaks - say the price goes down after 10 items...displaying the price on the page becomes a VERY complex piece of code.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||
|
|||||||
![]() the quantity dropdown doesnt trigger the check_options function, so you would have to add it to the onchange and also edit check_options in the price update section to multiply by the quantity, which you would need to pass to it (either as a parameter or use DOM)
but i'd agree with everyone else that i prefer the price per product rather than the total |
|||||||
#7
|
|||||||||
|
|||||||||
![]() Quote:
I'm not sure if I have seen this in another shop, I think I did but where ... haven't got a clue. But I somehow find it strange that when you have product options the price is displayed/changed accordingly ... what's the difference then? Quote:
Quote:
Is this just me having problems with the correct mind setting if there is any?
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
|
|||
X-Cart forums © 2001-2020
|