webshop

Merge arrays so they contain only recurring values

早过忘川 提交于 2020-01-06 04:23:39
问题 We are upgrading a webshop so the filtering is a little bit different. Now we simply get all product ID's which are related to one or more selected filter values. //Filter value '8 GB' $result[] = array(1,6,5,8,9); //Filter value 'AMD E' (and)OR 'INTEL' $result[] = array(1,5,8,9,10,500,502,503,600,607,608,...); The 'AMD E' and 'INTEL' values are from the same filter 'Processor' so we would like these combined as the visitor would like to have all products with an AMD E OR an INTEL processor.

Aliexpress API - full ordering process

╄→尐↘猪︶ㄣ 提交于 2019-12-21 03:28:13
问题 Does Aliexpress have an API that allows to make full ordering process? This means to have own eshop and just communicate with API (including payment via Aliexpress). 回答1: They seem to have this DEV Centre but they say that you have to be a seller to get registered not sure why. As a buyer I was looking to find a way to download my orders as they don't provide reports at all. One problem with this is that its in Chinese so you may probably has to use browser with translation options like

Buying many products at once from a webshop

╄→尐↘猪︶ㄣ 提交于 2019-12-12 03:18:13
问题 It's quite simple to program just one product to get sold via my payment system (api.payson.se) but buying many products at the same time in various amounts posed trouble for me since it was not implemented and I didn't have a good idea how to do it. Now I have a solution that I just put together which works but the modelling and control flow is kind of very quick and dirty and I wonder whether this is even acceptable or should need a rewrite. The system now behaves so that I can enter the

Need help creating a query based on ui filter values

核能气质少年 提交于 2019-12-12 01:57:50
问题 It has been a few months now since the launch of our webshop and we are still creating new bling to make it easier for visitors to browse the catalog. At the moment we are trying to add a filter that filters by product specifications. Let's say the next options are available MEMORY 8 GB 12 GB PROCESSOR INTEL AMD A AMD E The SQL to get all relevant product ID's looks like this at the moment: SELECT `lu_specifications` . * , `app_products`.`id` AS product_id FROM ( `lu_specifications` ) LEFT

Javascript and webshop tracking/affiliate across websites, how to do?

感情迁移 提交于 2019-12-11 18:09:37
问题 I have a small front end to a webshop. All customers that go through my website and buy an item from the webshop I get back 5% of the amount. I need to find a way af tracking the customers i forward from my webshop to the other webshop. And then get the webshop to reply to me when the purchase has been made. In my webshop i have made a small page: collect.aspx that requests and saves the values passed in the querystring, something like this pseudo code: string orderid = Request["orderid"];

WooCommerce: issue setting attributes with wp_set_object_terms

*爱你&永不变心* 提交于 2019-12-11 10:44:29
问题 I need to set product's attributes via PHP code. According to other threads on StackOverflow, there's the method wp_set_object_terms . Unfortunately it is not working as it is supposed to do in my case: For example, there is an attribute named "Hersteller", slug "hersteller". And there is a product, ID 593, with no "hersteller" attribute set. I tried the following code to fill the attribute: wp_set_object_terms(593, 'Alpina', 'pa_hersteller' , false); When I'm attempting to display the

MySQL database structure for a webshop

Deadly 提交于 2019-12-08 03:12:46
问题 I am building an online shop and I have a problem. I will have products which have a direct price (for example HTC Touch 2 Smartphone: $299.00 ), but in the same time I will have products which have prices for combinations based on specifications: In this image you can see the database diagram, which I think would be ok for the multiple-price products: THE MAIN PROBLEM: Since this is a webshop, people will put items in the shopping cart. I think the items inserted into the shopping cart

Aliexpress API - full ordering process

ぃ、小莉子 提交于 2019-12-03 10:30:28
Does Aliexpress have an API that allows to make full ordering process? This means to have own eshop and just communicate with API (including payment via Aliexpress). Mubashar They seem to have this DEV Centre but they say that you have to be a seller to get registered not sure why. As a buyer I was looking to find a way to download my orders as they don't provide reports at all. One problem with this is that its in Chinese so you may probably has to use browser with translation options like chrome. 来源: https://stackoverflow.com/questions/36015618/aliexpress-api-full-ordering-process

How to put magento in maintenance

…衆ロ難τιáo~ 提交于 2019-12-03 05:54:57
问题 Is it possible to put a magento site under an maintenance flag so that visitors will get a message that the site is under construction? I can't find this setting in the admin area. Another solution will also be welcome. Any help would be appreciated. Thank you. 回答1: I use this often. http://inchoo.net/ecommerce/magento/maintenance-mode-in-magento/ The important part is: Open: index.php in root and above line 57 add (remembering to edit the ‘allowed’ array to contain the IP’s you want to be