e-commerce

Prestashop - Change order status when payment is validated

天涯浪子 提交于 2019-12-09 18:33:35
问题 When a payment is validated, the order status becomes "Payment validated" ("Paiement accepté" in french). I want to set another status when payment is validated, so the history would show the following : Current status : My personnal status History : My personnal status Payment validated To do so, I use the hook actionOrderStatusPostUpdate. This is my code : public function hookActionOrderStatusPostUpdate($aParams) { $oOrder = new Order($aParams['id_order']); if($aParams['newOrderStatus']->id

get an array of all categories with details in Magento

旧城冷巷雨未停 提交于 2019-12-09 12:22:46
问题 I want to be able to call through the API to get an array of all the categories with the details like the URL key. That goal in the end will be an array like this $massage_cats=array( array("entity_id"=>78, "name"=>"Massage Oils and Tools", "url_key"=>"massage-oils-and-tools", "url_path"=>"essential-accessories/massage-oils-and-tools.html"), array("entity_id"=>79, "name"=>"Massage Oils", "url_key"=>"massage-oils", "url_path"=>"essential-accessories/massage-oils-and-tools/massage-oils.html") )

Magento Add Shipping Tax to Tax Breakdown And Grand Total

余生颓废 提交于 2019-12-08 21:52:44
问题 I'm using Magento and I am having a problem with the totals being displayed. At the moment I have this: Subtotal: £10.00 Shipping & Handling: £5.00 Tax (at the moment just using 20% of Subtotal) (20%):£2.00 Grand Total: £17.00 So It should look like: Subtotal: £10.00 Shipping & Handling: £5.00 Tax (need it to be 20% of subtotal AND 20% of shipping & Handling) (20%):£3.00 Grand Total: £18.00 As you can see the Tax has gone from £2.00 to £3.00 as I need it to take 20% of the Shipping & Handling

Magento: Display products from childcategories if parent category is empty

泪湿孤枕 提交于 2019-12-08 19:03:45
问题 I have the following categories Car parts (0) Tires (0) Rims (5) Now in the product listing obviously the car parts en tires listing returns 0 products. But for the user this is ankward. Is it possible to show child items if a category is empty? Kind regards 回答1: Have you marked the category as an anchor category in the administrative interface? That should allow child categories' products to show up in the parent category listing. Hope that helps. Thanks, Joe 回答2: I've been looking for hours

Configuring or adapting Spree or another solution to create a multi-vendor, single domain marketplace (similar to etsy) in Ruby on Rails

我是研究僧i 提交于 2019-12-08 14:05:08
问题 I am trying to create a Rails based multi-vendor e-marketplace, similar to Etsy (but for my specific niche). I did see a similar question at Etsy-like marketplace with Activemerchant? (Rails), but my needs are more than a simple payment processor as that question seems to be discussing. Vendors would need: Customer order management system CMS (e.g. adding & updating products) Invoicing system Ability receive payments directly from customers and the marketplace management would need: Vendor

What's a good book for introduction to databases for web developers [closed]

流过昼夜 提交于 2019-12-08 13:33:11
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . A book that is an introduction to databases and geared towards web developers. 回答1: I really liked this book, was clear, concise and

can client pay from his apple account to company from iphone application

僤鯓⒐⒋嵵緔 提交于 2019-12-08 11:42:45
问题 From My Previous question sending request to apple - from iphone custom application Here, I have added more specified my question. Suppose my application has implemented followings. Lets take an simple example I have developed an application, for mobile dealer. User can see ten mobile items on screen. Now, user selects two items.(mobiles) Now, User chooses check out option. in check out option, he will provide his apple account - id & password. Above I have explained the process that should

How do I display all of my products on my home page using Shopify and Liquid?

笑着哭i 提交于 2019-12-08 07:59:30
问题 Is there a simple snippet of Liquid markup I can use on my index.liquid page (home page) to display all of the products that I have and make each of those images a link to the respective product's information page? 回答1: Most themes display a collection on their home page. Go with that functionality, don't add code. For your home page collection to include all products in your store, make it a smart collection with a condition such as Product Price > 0. If you have more than 50 products in

Quantities of items are not tracked in google analytics transactions

浪子不回头ぞ 提交于 2019-12-08 07:20:49
问题 I'm trying to send e-commerce transactions from my iOS app using google tag manager like described here Now I can see transactions in the conversions > e-commerce > overview panel in google analytics but all the items have a quantity of 0. I'm making a NSMutableDictionary for the items like so: for (CartItem *item in cart.items) { [transaction[@"transactionProducts"] addObject:@{@"name": item.productName, @"sku": item.reference, @"category": @"mobile", @"price": item.shopPrice, @"currency": @

Show all spree ecommerce products together with their count-on-hand displayed

走远了吗. 提交于 2019-12-08 07:06:35
问题 How can I show all products and their counts together in one place in Spree Commerce? The only place I see the count_on_hand implemented is in admin/stock_transfers and even then it's several clicks deep for the administrator. admin --> configuration --> stock transfers --> view transfer and then you can see a count on hand variable displayed per item. 回答1: Each product has a total on hand method defined here: https://github.com/spree/spree/blob/v2.2.2/core/app/models/spree/product.rb#L200