e-commerce

Select products by multiple attributes, using AND instead OR concatenator, Data model EAV

喜夏-厌秋 提交于 2019-12-01 08:47:24
I have an issue with a query for eCommerce website products filter. I have EAV data model like this: products [id, title....] attributes [id, name] attributes_entity [product_id, attribute_id, value_id] attributes_values [id, value] My query: SELECT products.id, products.title FROM products WHERE products.id IN ( SELECT attributes_entity.product_id FROM attributes_entity INNER JOIN attributes ON attributes_entity.attribute_id=attributes.id INNER JOIN attributes_values ON attributes_entity.value_id=attributes_values.id WHERE ( (attributes.name="Memory" AND attributes_values.value="16GB") >> AND

Is In-App purchase applicable for eBooks/Audiobooks?

江枫思渺然 提交于 2019-12-01 08:26:41
We are a book store selling hard covers, ebooks and audiobooks. We have a website where we accept credit cards for online payment from customers. We also have an iOS and Android app where user can read/listen the purchased books. Now we want to sell the ebooks and audiobooks via our iOS native application (and Android app as well in future). Customers will be able to buy ebooks/audio books from our app and can download and read them in all the platforms. We have a pretty large number of book titles, 50K+ and its extending. What would be the best way to implement this? Is in-app purchase

Select products by multiple attributes, using AND instead OR concatenator, Data model EAV

ε祈祈猫儿з 提交于 2019-12-01 06:25:51
问题 I have an issue with a query for eCommerce website products filter. I have EAV data model like this: products [id, title....] attributes [id, name] attributes_entity [product_id, attribute_id, value_id] attributes_values [id, value] My query: SELECT products.id, products.title FROM products WHERE products.id IN ( SELECT attributes_entity.product_id FROM attributes_entity INNER JOIN attributes ON attributes_entity.attribute_id=attributes.id INNER JOIN attributes_values ON attributes_entity

Tracking catalog product impressions - Enhanced Ecommerce Google Analytics

独自空忆成欢 提交于 2019-12-01 03:49:43
I'm trying to implement product impressions on a ecommerce catalog page using google analytics enhanced ecommerce tracking. Following the specs one should implement it like this: ga('create', 'UA-XXXXX-Y'); ga('require', 'ec'); ga('ec:addImpression', { 'id': 'P12345', // Product details are provided in an impressionFieldObject. 'name': 'Android Warhol T-Shirt', 'category': 'Apparel/T-Shirts', 'brand': 'Google', 'variant': 'black', 'list': 'Search Results', 'position': 1 // 'position' indicates the product position in the list. }); ga('ec:addImpression', { 'id': 'P67890', 'name': 'YouTube

How and where to modify Magento search query?

自闭症网瘾萝莉.ら 提交于 2019-12-01 02:48:45
First of all, I found similar questions in SO but there is not any answer for them. So, the first part of the question is a little bit duplicated. I want to improve search results in Magento. Here is what I've done already: 1. Search with AND instead of OR when there are multiple words. 2. Ajax search starts searching from anywhere and not only from the beginning of the fields. 3. Trim the last s from the words to prevent empty results when searching with plurals. 4. I changed the search type from Like to Fulltext or Combine but the results were not better and even were worst, so I leave it as

OpenCart: How to accurately populate oc_category_path

心不动则不痛 提交于 2019-12-01 01:30:16
问题 I have used an online service to transfer data from my other ecommerce website into OpenCart and everything seems to have been transferred correctly. There is however one issue with the product categories. The categories have been transferred to the oc_category table; however, looks like there is another table called oc_category_path that needs to be populated as well if I want to be able to edit my categories in the admin. Do you know what this table is and how I can correctly populate it

How to deal with inventory and concurrency

♀尐吖头ヾ 提交于 2019-12-01 01:11:18
What are strategies to deal with seemingly common scenario of a limited inventory and an order form. If there is one item left, and two people attempt to purchase at the same time. How do you deal with whoever submits payment last? When a user adds a limited-supply item to their shopping cart, put a hold on the item for a small window of time - say, 15 minutes. It's theirs if they pay within the window, otherwise the hold is removed and the item is returned to the pool. (For the duration of the hold, the item considered "not available" to other users.) AFAIK, it's pretty standard technique - I

Tracking catalog product impressions - Enhanced Ecommerce Google Analytics

百般思念 提交于 2019-12-01 00:44:01
问题 I'm trying to implement product impressions on a ecommerce catalog page using google analytics enhanced ecommerce tracking. Following the specs one should implement it like this: ga('create', 'UA-XXXXX-Y'); ga('require', 'ec'); ga('ec:addImpression', { 'id': 'P12345', // Product details are provided in an impressionFieldObject. 'name': 'Android Warhol T-Shirt', 'category': 'Apparel/T-Shirts', 'brand': 'Google', 'variant': 'black', 'list': 'Search Results', 'position': 1 // 'position'

How and where to modify Magento search query?

懵懂的女人 提交于 2019-11-30 22:32:24
问题 First of all, I found similar questions in SO but there is not any answer for them. So, the first part of the question is a little bit duplicated. I want to improve search results in Magento. Here is what I've done already: 1. Search with AND instead of OR when there are multiple words. 2. Ajax search starts searching from anywhere and not only from the beginning of the fields. 3. Trim the last s from the words to prevent empty results when searching with plurals. 4. I changed the search type

How to deal with inventory and concurrency

早过忘川 提交于 2019-11-30 20:55:46
问题 What are strategies to deal with seemingly common scenario of a limited inventory and an order form. If there is one item left, and two people attempt to purchase at the same time. How do you deal with whoever submits payment last? 回答1: When a user adds a limited-supply item to their shopping cart, put a hold on the item for a small window of time - say, 15 minutes. It's theirs if they pay within the window, otherwise the hold is removed and the item is returned to the pool. (For the duration