e-commerce

Magento CE :: Discount on First Order?

喜夏-厌秋 提交于 2019-12-21 17:33:30
问题 Is there any plausible way to give a customer a discount on their first order? I imagine it would require the user to sign up for a free account, which is fine. But after that, I'm stumped. The Promotion feature in Magento doesn't cater for anything like this and Google doesn't find any good leads. Ideas? :) 回答1: Nothing out of the box to do this, but the general approach I'd take would be Create a catalog price rule for your "first time" discount Add an attribute to the customer object named

What is the best way to store a historical price list in a MySQL table?

我与影子孤独终老i 提交于 2019-12-21 05:11:07
问题 Basically, my question is this - I have a list of prices, some of which are historical (i.e. I want to be able to search that product X was $0.99 on March 11, $1.99 on April 1, etc...). What is the best way to store this information? I assumed I would probably have a Product table that has a foreign key to a price table. I initially thought that storing the current price would probably be the best bet, but I think I want to be able to store historical price data, so would the better route to

How to select specific fields with aliases using joinTable or joinField in Magento

做~自己de王妃 提交于 2019-12-21 04:06:35
问题 I want to pre-filter* data in the invoice grid visible in Magento's admin panel. Here is a question that I asked earlier, and this one is related to the solution presented for that, hence it might act as a good explanation. So, I am modifying the Mage_Adminhtml_Block_Sales_Invoice_Grid::_prepareCollection method so that it first fetches customer referred by the logged in admin. Then it will fetch orders from these customer(s) - ideally only the order id's - Then join this collection to sales

Magento Recurring Profiles with non-Paypal payment method

家住魔仙堡 提交于 2019-12-20 18:34:11
问题 Interested to know if (a) this is possible, and (b) whether any of you have successfully implemented the functionality. The wiki page repeatedly refers to "Currently, by default, Magento supports purchasing items with recurring profiles only for the PayPal payment system and only through the Express Checkout method." - I'm not sure if that's because there are no payment other methods currently implementing the Interface, or because they've hardcoded the architecture such that it will only

How to assign role with PHP in Drupal?

不问归期 提交于 2019-12-20 14:44:40
问题 I need to assign a kind of "premium status" to members that purchase an amount equal or greater than 100 € via PHP. Conditional Actions are already set up (user = anonymous/authenticated AND total amount = equal/greater than 100 AND user =! premium) but I'm missing the PHP part to actually say "then grant him the premium membership". How can I achieve this? EDIT: is the below code correct? if ($account) { $uid = $account->uid; $role_name = 'authenticated user'; $rid = db_result(db_query(

best E-Commerce Shopping Carts for Zend Framework developer [closed]

丶灬走出姿态 提交于 2019-12-20 10:28:51
问题 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 8 years ago . What is the easiest, most friendly and robust E-Commerce Shopping Carts for a Zend Framework developer. I want invest my time in

How to Change Order Starting Number in Magento

拟墨画扇 提交于 2019-12-20 09:38:00
问题 Is there any way to change Order Starting Number in Magento without changing order numbers that are already there? I just want to set 170000xxxx for all new orders. Thanks 回答1: Look in eav_entity_store and find increment_last_id . Update this number, making sure that entity_type_id is correct for orders. Find the entity_type_id for orders SELECT entity_type_id FROM eav_entity_type WHERE entity_type_code = 'order'; 回答2: The simplest solution for this is to use Ashley Schroder's "Set Custom

Magento: Adding simple products from a bundle to separate lines in the cart

 ̄綄美尐妖づ 提交于 2019-12-18 11:44:20
问题 My client is requesting that each simple product within a bundled product they are selling (Clothing Top and Bottom) be added as a separate line item in the cart whenever a user adds it. Can anyone direct me in how to accomplish this? I am fairly good with MVC and the Zend Framework, but I need a bit of help finding the exact files that control adding bundled products to the cart, or an alternate method for getting these items added separately. Please assume that the only possible product

Make all store images the base, small and thumbnail images in Magento?

给你一囗甜甜゛ 提交于 2019-12-17 22:20:26
问题 I have a Magento store that has around 3,000 products. Almost all of these products have a single image attached to it. For some reason, even though I set the small image and thumbnail image as the same as the base image in the import CSV file, only the base image is set for each product. This means that when you search for a product you get a placeholder - but once you go into the product page you get the correct image. This can be easily remedied by going into the product admin page and

PHP run a script when a session expires

只愿长相守 提交于 2019-12-17 20:48:11
问题 I have a cart application with unique items with qty 1 - I need to deplete the stock qty when a user puts one in the basket to avoid someone else buying it. Problem is, that if they abandon the cart without buying I need to put the item back in stock. Is there a way I can replenish the stock when the cart session expires? ie run a script to replace the stock. 回答1: You can use session_set_save_handler to create a custom session-handling class. When you do this, you can decide other actions