e-commerce

Hotcakes Commerce Extending the DrillDown ViewModel

人走茶凉 提交于 2019-12-11 07:56:37
问题 I'm using v 1.10.3 of HC and I'm trying to extend the ViewModel for the drilldown view. I want to add a new boolean property to the products so that I can check it and add some html to the view as necessary. So inside of Category.js I thought I'd loop through the data, and add the new property to the ViewModel so that it could be used in the View. The loop is where I'm having a problem. When I debug the code, the loop adds the property as expected, but when the page finishes loading and I

Google Analytics Enhanced Ecommerce

吃可爱长大的小学妹 提交于 2019-12-11 05:42:01
问题 I am using Google Analytics Enhanced Ecommerce on my site and I encounter this specific problem. My Checkout 3rd Step is on the same page where I am measuring my transaction. Should I implement it like this? ga("ec:addProduct", {values_here}); ga("ec:setAction", "checkout", {step: 3}); ga("ec:setAction", "purchase", {values_here}); ga("send", "pageview") Based on the Google Analytics Debugger. I can only set 1 action per send pageview. How am I going to send my checkout step 3? is this

Magento: Backup Advice

时光毁灭记忆、已成空白 提交于 2019-12-11 05:22:35
问题 This could just as well apply to any ecommerce system such as Magento. I have a new Magento installation and I want to be prepared for when the client asks me about backups. I am aware of all (or most) of the methods of taking backups, and also the various bits that are protected by each type, however the concern I have is to do with open orders. What happens to orders placed after the most recent DB backup in the event of a restore? I presume a DB backup would store the open orders on the

Database design, multiple types of customers in the same table

丶灬走出姿态 提交于 2019-12-11 05:14:46
问题 Business scenario: Customers can login to an online e-Commerce app, using their e-mail addresses as their logins. We have a CRM app that depends on the same database. Employees use the CRM app to add non-online customers, and e-mail is NOT required field here. Technically: There is nothing "naturally" making a PK in Customer table. Regardless, I always use an artificial PK even if there is no natural one. I'm worried that this will eventually lead to problems in searching, integrity, etc. I

Woocommerce: get a list for all sku product

怎甘沉沦 提交于 2019-12-11 03:59:17
问题 I would to get in a <li> list all sku there are in an ecommerce. I belive that I should use foreach cycle, but I don't know how to recall the selection of all products. Thanks for all reply, and sorry for my bad english. Greatings 回答1: Please try this. Let me know if this works perfectly ;) $args = array( 'post_type' => 'product', 'posts_per_page' => -1 ); query_posts( $args ); if( have_posts() ): echo '<ul>'; while ( have_posts() ) : the_post(); echo '<li>'. $product->get_sku() . '</li>';

Order confirmation email not working for PayPal payment method

浪尽此生 提交于 2019-12-11 01:35:56
问题 We are not getting order confirmation email if customer placed an order through PayPal in Magento site. But we get the invoice and shipment mails. We set Sale : Payment Action in PayPal configuration. So once we create the order, along with the order email [it's not going to the customer] I want to send invoice mail also to customer. i=I think this extension will send invoice only once order status become complete . Would SMTP extension work for us? Is there anything else we need to do? 来源:

Bigcommerce Python API, how do I create a product with an image?

帅比萌擦擦* 提交于 2019-12-11 01:35:53
问题 how do I upload an image (from the web) using Bigcommerce's Python API? I've got this so far: custom = api.Products.create(name='Test', type='physical', price=8.33, categories=[85], availability='available', weight=0) Thank you! I've tried almost everything! 回答1: This will create the product on the BigCommerce website. You create the image after creating the product, by entering the following line. The image_file tag should be a fully qualified URL pointing to an image that is accessible to

Authorize.net payment gateway on wordpress e-commerce plugin

余生颓废 提交于 2019-12-11 01:29:06
问题 Does the wordpress e-commerce plugin has the authorize.net payment gateway? 回答1: Yes, the WordPress E-Commerce plugin has an Authorize.Net payment gateway integration module and you do not need gold cart for that if you use the following WP E-Commerce Authorize.Net module from codecanyon. 回答2: Yes, but you need to also install the gold cart plugin for that. 回答3: There are several plugins available that support Authorize.net, however, they don't all support the same interfaces. Authorize.net

How to skip cart page on woocomerce for certain products only?

自古美人都是妖i 提交于 2019-12-10 22:45:47
问题 I added this to my functions.php file : add_filter ('woocommerce_add_to_cart_redirect', 'woo_redirect_to_checkout'); function woo_redirect_to_checkout() { $checkout_url = WC()->cart->get_checkout_url(); return $checkout_url; } But now, all the products are re-directing strait to check-out. I would like to have this option only in one product. Is that a way I can add a product ID to that same filer? Thank you! 回答1: You need to get the product when It is just added to cart , then check if for

Insert Total value of order, or calculate every time?

故事扮演 提交于 2019-12-10 22:37:43
问题 I'm builing a simple e-commerce website, and i'm having some doubts on the order confirmation, and creation... It's more a question of good practices then a real question... Should I: calculate the total order value, and insert on the database, or should i calculate it every time i read/dosomething with the order? Thanks 回答1: Best practices in database land means normalised data, and storing values that can be calculated violates that. You should never store things that you can calculate