I had a mod made for opencart enabling me to allow my local customers add additional item to their order 24 hours before local delivery.
Basically my shop is made up of one-off items and the quantity is generally 1
The modification that was made works fine but..
Say the conditions are: Iv'e added 3 items to my cart and processed my order for local delivery.
Then.. I go to add more to my order.
The form below on my pastebin allows me to add additional items to the order but when it does it re-checks the other items on the order and because they are technically out of stock they get removed from the amend order page.
I hope ive made sense and someone wants to help. Thanks!
CODE: http://pastebin.com/CsHts0FR
Related
Hi not sure if this is the best place to ask but was my first thought as I can't find anything on it elsewhere.
Basically My site has a products using woocomerce. These have been set up as variable products. Everything seemed to be working fine however when the attribute has over 25 variations in it I can no longer add the product to my basket?
To clarify the products I'm creating are online courses. The attribute for this product is the course date. Within this I have created around 35 different dates as variations which the user can select from a drop down.
This was working fine and when you select a date it can be added to the basket. However as soon as the number of variations ('Dates')i add to the product exceeds 25 the add to basket button always stays greyed out. I can no longer add any of the variants at all...
Truly is bizzare anyone have any ideas?
I have a fully functional cart, programmed with PHP that uses session cookies. My site will host items from multiple sellers and to avoid getting into PayPal parallel payments (just now) I need to be able to limit each session to items from 1 seller only per checkout. What is the best way to go about this?
I have tried counting seller IDs and running an if statement (if >1) to redirect to a slightly altered cart page requesting items from multiple sellers to be removed in order to continue.
The problem with this approach seems to be with counting the arrays (it will only count 1 id that relates to one particular item in the cart array).
Any suggestions would be greatly appreciated.
After your client choose his first item, you may refresh the pages, displaying only the newly allowed items (the ones that are from the same sellers as the first choosen item).
But it seems strange to force the user to do that...
i know this is old but it can be of help to any one searshing something like this
this is something i was working on recently so i came with this idea to group the sellers with their items
so you checkout by the seller but they still can add more items
this is much more easy to make than to limit it to one seller like how you said
I've tried the suggestions here: Magento update subtotal item
I have a Magento site with several extensions. We're using Amasty to add 'bonus' items. The problem is we want those items to show up and be added to the subtotal if the user selects 30 day billing.
I've tried making a simple extension and hooking to various events, but it looks like Amasty always has the last word when updating the subtotal.
I've even modified the Dispatcher so that it logs who it's dispatching to to see if I can track down where it's getting updated but to no avail.
How can I make sure that the extension I write is the final one to update the subtotal/total for the order?
It's right after checkout that it's being updated by something to exclude the bonus item.s
Checkout sort order for each order total module.
On times one of the order total modules sort order is higher then total module.
Or logically sort orders have some wrong values.
First you need to check that.
I had seen something similar happen when an old Magento commerce version was updated.
I'm developing a custom payment module for OpenCart. For this, i want a specific order total, but i'm unsure how to make a order total count only for this payment option.
So far i've laid out the basic file structures for a payment module, and i can choose it on checkout. I have also added my own order total to catalog/model/total
I'm guessing that i need some logic in the getMethod of catalog/model/payment/my_payment_module
Can anyone point me in the right direction?
I ended up solving this myself.
I added a new Order Total class. Inside it i checked for the correct payment method in the session before returning anything.
All the totals will update when the payment method is changed, so this works fine.
i've been tasked to create a system where a customer can edit an order before it reaches the processing stage, i figure that the easiest way is to use the cart but with some edits to it to detect that your editing the order rather than making a new one
i have been testing out theories so far and everything seem to pan out, on theory i have been trying to get to work is utilizing the same process for re-ordering to populate the cart with the previous order, however i've ran into a problem, if an item is out of stock, it wont be added and until the customer confirms the changed to their order, i can go and release what they ordered, i can store how much the customer ordered but only if the item is added to the cart
so is there a way to get magento to add items to the cart with the re-order while ignoring what stock levels are
EDIT:
i've tried removing the Try Catch in Mage_Sales_Controller_Abstract in the function reorderAction() and it's adding the items however this means also i can't catch the exception of it's if it's just a notice or if there is any other reason why it can't add the item to the cart besides not having the stock
Got it working now, the trick was to enable Backorders and also modify parts of magento to prevent sellers from exceeding stock levels when they normally order (since if an item only has 6 in stock, with backorders enabled a customer can buy 10), after that it was simply setting up a system in the cart to detect when your editing an order and only allow backordering there since all orders are checked in the warehouse