[checkout] Initial Quantity not used when adding to cart.
|
koeksister
Joined: 2009-04-27
Posts: 2 |
Posted: Tue, 2009-04-28 11:07
|
|||||||||||
|
First thanks for a great plugin. What I am trying to do is create price levels but the initial quantity function doesn't seem to be working when adding photos to the cart. Steps 1-3 explain the setup I have. 1. I have set up checkout with three price levels each with an initial quantity. (see attachement: checkoutsettings.png). 2. On the theme settings I have added the "Product Price Info" block to the Photo Page. (see attachement: themesettings.png). It looks now like in attachment "photopageview.png" 3. When I add a photo using the link in the "Product Price Info" block , in this case the second option with Initial Quantity of 2, the value in the Cart shows as 1. (see attachment: cartview.png) If I add the "Item actions" block to the Photo Page and I use the add to Cart action, the Photo is added to the Card and all Initial Quantity values are shown (cartview2.png). Is it possible to have the Initial Quantity value added when using the links in the Product Price info block?
|
||||||||||||

Posts: 4338
The links in the ItemPrices block specify a quantity of 1, which overrides the initial quantity setting in the product table.
In the file ItemPrices.tpl, try removing the "|1" from line 15 so it reads
<td class="checkoutProduct"> <a class="{g->linkId view="checkout.AddToCart"}" href="{g->url arg1="controller=checkout.AddToCart" arg2="itemId=`$item.id`|`$thisProduct.productId`" arg3="return=1"}" rel="nofollow">{$thisProduct.name}</a></td>It's a while since I coded the relevant part of the module, but that might do the trick. (Follow the advice at the top of the file regarding making modifications to .tpl files if you don't know about local/ directories.)
By the way, you should install and use the checkoutpricebands module for the correct way to do your "1, 2-9, 10+" pricing.
And shouldn't your product table read 1st, 2nd-9th, 10th+? Otherwise it sounds like you're selling things by weight, 2st being an abbreviation for 2 stones (weight) etc.
Posts: 2
Thanks for getting back.
I haven't tried your suggested edit to the ItemPrices.tpl file. I missed the checkoutpricebands module some how and now have that working and it has indeed solved my pricing level issue.
Thanks a lot
PS: 1st, 2-9st etc are abbreviation of swedish "Styck" which means loosely translated means "item"
Posts: 4338
Cool! Now I know a word in Swedish!
Posts: 22892
Shouldn't that be the second work? Ikea being the first?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 4338
Good point. Well, I can test out my new language skills by asking for more styck next time I go to Ikea.