e-commerce

Shopify API, unable to create order

此生再无相见时 提交于 2019-12-08 06:49:23
问题 I created private application on my test shop and I am trying to create simple order via the Shopify API following the instructions found here: http://docs.shopify.com/api/order#create I am using the last example, and sending POST request to admin/orders.json with this in the body of the request: { "order": { "line_items": [ { "quantity": 1, "variant_id": 500775053 } ] } } 500775053 is a valid variant id. The response I'm getting is: { "errors": { "line_items": [ "must have at least one line

Get error while editing Customers from back end in Magento

二次信任 提交于 2019-12-08 06:05:36
问题 I suddenly started encountering this error out of no where and need some help. In my Manage Customers section, when ever I add a new customer, it shows up fine with all values correct. But whenever I try to edit a newly added customer I get an error page in Magento. There has been an error processing your request. And later when I return to 'Manage Customers' grid, the 'Customer Since' column for that customer record changes to this value "30 Nov -1 01:00:00" So does any one have any idea

Display Magento Custom Option Values in Shoping Cart

感情迁移 提交于 2019-12-08 05:06:44
问题 A few of the products on my Magento site have custom options (not attributes). For one product is available in Gold or Silver an it has a drop down with those two options. How do I get the name of the option the user selected to show next to product name on the shopping cart page? 回答1: To get product custom option value at cart page which are set at 'AddtoCart' time try with following code. $cart = Mage::helper('checkout/cart')->getCart()->getQuote()->getAllItems(); /* cart item loop */

Magento - get all categories containing products by brand

半腔热情 提交于 2019-12-08 01:46:59
问题 I've spent a bit of time trying to figure this out but to no avail. If I had a series of pages that displayed a collection of products filtered by manufacturer, and I wanted some navigation in, say, the left column on each of these pages, which contained a list of categories containing products by the current manufacturer, how would I go about populating this without resorting to some horribly slow code? (There are a few thousand products). I could put something similar to this in a loop,

Magento editor automatic line break issue while adding new product

旧街凉风 提交于 2019-12-07 18:21:16
问题 I'm adding a new product in Magento CE 1.7.0.2. I entered the HTML code in Short Description attribute. MY PROBLEM: I really don't know where these extra <br> coming from. Even the WYSIWYG editor is not showing these <br> but they are appearing on the website's product page. Please help. WHAT I ENTERED: <p>Product Description:</p> <table border="1" cellspacing="0" cellpadding="5px"> <tr> <td>Category</td> <td>Specials</td> </tr> <tr> <td>Texure</td> <td>Digitally Printed on High Quality Matte

Currency Conversion for E-commerce site - Preventing incorrect Total Cart due to rounding

≡放荡痞女 提交于 2019-12-07 14:16:00
问题 I'm adding multi-currency support to an e-commerce application. The way I approached the problem was to keep the application in it's base currency and have the template call a priceDisplay() function/plugin anytime it displays a price. So the template continues to receive prices in dollar amounts. The priceDisplay function correctly converts the price if needed and adds the correct $ or Euro sign depending on the viewers settings, stored in the session. On order submit, the application will

Get error while editing Customers from back end in Magento

落爺英雄遲暮 提交于 2019-12-07 13:41:29
I suddenly started encountering this error out of no where and need some help. In my Manage Customers section, when ever I add a new customer, it shows up fine with all values correct. But whenever I try to edit a newly added customer I get an error page in Magento. There has been an error processing your request. And later when I return to 'Manage Customers' grid, the 'Customer Since' column for that customer record changes to this value "30 Nov -1 01:00:00" So does any one have any idea what might be going wrong over there? This is the error in var/report folder, a:5:{i:0;s:25:"No date part

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

时间秒杀一切 提交于 2019-12-07 08:48:27
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. 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-L206 You can iterate through all products, and call total_on_hand to find the number of those products on hand

Implementing Suggestions 'xxx in Category' using elasticsearch

会有一股神秘感。 提交于 2019-12-07 07:14:55
问题 I want to implement amazon-like 'in-category' suggestions for products. Amazon proposes to search for a given term in a specific category instead of a global search. This allows for a more specific search and results. Is there a way how to implement this using one of the suggestion functions provided by elasticsearch? Currently my idea is to get the suggestions from elasticsearch and group them by category as a post processing. Is there something built in, returning the ready 'in-category'

Automatic invoicing in magento

末鹿安然 提交于 2019-12-07 07:11:46
问题 I have created new custom product type which extends virtual product in magento. Now I would like to block automatic invoicing for online payments eg. paypal when order contains at least one custom product type. All orders with such product have to be invoiced manually. How should I resolve this? 回答1: The best approach to this would be register an Observer to an Event thrown during the payment capture process, but I'm not seeing too many relevant ones unfortunately. You could try sales_order