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.
Related
Hi all I will go straight to the point. I found out that when i create a shopping cart price rule in magento and added a promotion/coupon code as indicated above with all rules set correctly to have a discount works from the frontend as expected from customers checkout experience/process.
But when i try to create an order from the backend/admin and trying to apply the promocode1 coupon code to the order for a specific customer it shows it to be invalid. as indicated above.
My Version i am using currently is ver. 1.9.3.6
I hope someone can point me to the right direction or what i may be doing wrong or not doing.
snap shots below
Thanks.
This looks like a bug in magento as after several checks i realized that you have to select 'all store view' option during the creation of the price rule.
Even though you select the specific store view for the price rule, the coupon will not be applied to the order from the backend of magento without you selecting the 'all store view'.
I know this thread is old but I am also getting the same error messages and i resolve my issue by removing the fields reset_shipping: true from sales.js file in js/mage/adminhtml from function applyCoupon. In myside whenever i am applying coupon code then my shipping price is going to reset so coupon code could not apply if shipping price is 0 ( my coupon code is to offer free shipping)
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.
Im working on a site with woocomerce. I'm pretty sure this has been covered, but I am not sure where (have looked, promise!). Customers must be able to add to cart products... some are priced, others to be quoted on. She then needs to receive the order, check stock availability and get back to them with a price including shipping. So the submit cart should only send an order to her to quote on.Is there any function to make it possible or any other plugins or woocommerce extensions?
Just use the BACs or Cheque methods, the client will not need to pay and you can even add instructions to the customer.
You have option to change the payment method name for any other that you need, then it is quite simple to do this.
I have create a magento website, in this when we place order of an item then,
strong textAfter Placing Order, Customer Does Not Redirect to “Order Placed Successfully” and is Returned to Cart.
Order also gone in magento admin section under "Sales > order".
I have tried check/money order, authorize.net etc for order place but no positive results found,
under this they also not checked correct payment details for order in authorize.net.
It seems there is problem related with Payment method.
You can check this using other Payment method like Cash on Delivery etc.
Also please make sure you are entering correct information for Address like ZIP Code etc.
Can you list what extensions you have installed for your Magento install?
I've experienced this problem before when I had a custom module that observes the checkout event, when something has gone wrong with the code itself.
Chances are either one of your extensions or a custom built module that's listening to the checkout events is causing the problem.
I'm completely new on working with Magento and I'm going to create a module in order to validate and in some cases manipulate some cart/order information.
To be specific I'm gonna restrict the customer from buying an item more than X times.
I've started working on this a bit, but I'm not so satisfied with the solution.
This is how I've done it so far:
I've created a new module with a controller which subclasses Mage_Checkout_CartController and there I've implemented the addAction-method. So every time a product is added to the cart I search through the user's order history and look for previous orders containing this product. Then I prevent it from being added and trigger an error-message.
It has a lot of shortcomings. For instance, if the customer isn't logged in at the time he can add the product, you can update the cart with too many... etc.
I would be me comfortable if I could hook on events, but I don't know where to start. Haven't found so good guides about this.
I want to do this verification when listing cart, updating cart and before submitting order.
So, my questions are:
How do I add observers on these events in my module? I couldn't get config.xml-configuration for event observing to work. I also need to know the names of these events.
How do I manipulate the quantity of an item in cart / delete it? When updating cart with too many of the products I want to change the quantity and trigger an error.
If you have any other ideas on a better solution for this, you're very welcome to comment.
I appreciate any help. Thanks.
I think this article should answer on all your questions. See events list at the bottom of this article. Do not forget delete cache after each change made to config.xml and other xml files in your module etc folder.