checkout

How can i add a driver tip in magento onepage checkout process?

岁酱吖の 提交于 2019-12-03 09:14:07
Currently i have an requirement of adding a custom Driver tip step in magento onepage checkout process, right after the shipping method(step-3), in which i want user to select tip from some given options(i will make radio buttons), that will contain certain amounts, suppose user selected $150 then this amount will be added into total payment ? i tried all other tutorials over google, none of them is working for me, any help is appreciated, I recently work on similar type of requirement. so follow my instructions:- I request to you that don't focus on the length of answer just focus on the

Controller file was loaded but class does not exist

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am having trouble getting around this error in Magento: "Controller file was loaded but class does not exist". (Full stack at bottom) I am essentially trying to follow this tutorial: . ...though I am using my own company/class names etc. instead of "hello world" I am having trouble finding good documentation on Magento in general, and I am very new at it... can anyone provide some common causes, advice, or insight? I am swamped, googled this for hours, check permissions and file structure. You name it. Trace: #0 /var/www/dev/app/code/core

Magento: Show the Review Step in One Page Checkout

假装没事ソ 提交于 2019-12-03 08:31:59
I have not been able to figure this out for the life of me. I wanted to show the order review step(final step before processing the order) right away on the one page checkout in Magento. Any suggestions? Thanks all. If you look at the bottom of onepage.phtml, you will see <?php if($this->getActiveStep()): ?> accordion.openSection('opc-<?php echo $this->getActiveStep() ?>'); <?php endif; ?> which calls Mage_Checkout_Block_Onepage::getActiveStep() to determine which step to show first. You can override this by creating your own onepage.phtml in your theme and changing the block above to be:

WooCommerce API: create order and checkout

旧巷老猫 提交于 2019-12-03 08:27:52
WHAT AM I TRYING TO DO I want to make a Native Android APP (Not HTML5/Jquery mobile) for my Woocommerce website. I am trying to setup the APIs using kloon/WooCommerce-REST-API-Client-Library . So far I managed to retrieve the lists of products, coupons, customers, orders etc... which I could use to display in my Android app. Now I want to replicate add to cart/checkout process in the android app, but it seems this library dosen't provide functions for such workflow. MY QUESTION How can I achieve the follwing workflow with REST APIs in my Android app? (Similar to the website checkout process)

Getting order data after successful checkout hook

假如想象 提交于 2019-12-03 06:04:48
问题 In WooCommerce, I would like to send a request to an API once customer has successfully checked out. Its basically a website where client is selling online courses (Like udemy ). When customer checks out, I would like to send an API request and enroll user for that particular course. I have tried several WooCommerce hooks but none worked for me. This is the code that I'm using: add_action('woocommerce_checkout_order_processed', 'enroll_student', 10, 1); function enroll_student($order_id) {

Getting order data after successful checkout hook

久未见 提交于 2019-12-02 20:59:41
In WooCommerce, I would like to send a request to an API once customer has successfully checked out. Its basically a website where client is selling online courses (Like udemy ). When customer checks out, I would like to send an API request and enroll user for that particular course. I have tried several WooCommerce hooks but none worked for me. This is the code that I'm using: add_action('woocommerce_checkout_order_processed', 'enroll_student', 10, 1); function enroll_student($order_id) { echo $order_id; echo "Hooked"; } I am writing this code inside an activated plugin and for ease I am

Adding Woocommerce Brands names to cart item product names

江枫思渺然 提交于 2019-12-02 17:35:39
问题 I use the Woocommerce Brands plugin and I would like to add the Brand to each product when it is in the cart, like it displays variations. So Product Name, and then Size: XXX Colour: XXX Brand: XXX I have tried a few ways of doing it but I can't seem to get it to work. 回答1: Update 2 - Code enhanced and optimized (April 2019) Now the way to add brand name(s) just as the product attributes names + values in cart items, is also possible using this custom function hooked in woocommerce_get_item

Minimum cart item quantity for a specific product category in WooCommerce

浪子不回头ぞ 提交于 2019-12-02 10:51:13
问题 In WooCommerce, I need to set up a minimum quantity for each item of a product category. I searched the forum and found some code that works fine except it only counts the Quantity for a product category in total: add_action( 'woocommerce_checkout_process', 'wc_minimum_order_amount' ); add_action( 'woocommerce_before_cart' , 'wc_minimum_order_amount' ); function wc_minimum_order_amount() { $minimum = 5; //Qty product if ( WC()->cart->cart_contents_count < $minimum ) { $draught_links = array()

Adding Woocommerce Brands names to cart item product names

人盡茶涼 提交于 2019-12-02 09:27:16
I use the Woocommerce Brands plugin and I would like to add the Brand to each product when it is in the cart, like it displays variations. So Product Name, and then Size: XXX Colour: XXX Brand: XXX I have tried a few ways of doing it but I can't seem to get it to work. Update 2 - Code enhanced and optimized (April 2019) Now the way to add brand name(s) just as the product attributes names + values in cart items, is also possible using this custom function hooked in woocommerce_get_item_data filter hook. The code will be a little different (but the same to get the brand data): add_filter(

Customize addresses fields on WooCommerce My account and Checkout

坚强是说给别人听的谎言 提交于 2019-12-02 07:34:14
问题 I'm using the woocommerce_checkout_fields filter to edit the value of woocommerce field labels. It works fine on the checkout page (as you might expect), however I cannot understand why it doesn't also take effect on the account pages. I thought these fields were still taken form the same place? More specifically, I'm talking about the address fields on the edit-address endpoint on woocommerce account pages? My code attempt: function custom_woocommerce_fields( $fields ) { // Billing Fields