e-commerce

What is the conceptual difference between a Product and a Quote Item

痴心易碎 提交于 2019-12-04 10:07:26
Involved classes : Mage_Sales_Model_Quote_Item and Mage_Catalog_Model_Product . I get both of them as a result of listening an event ( on cart add ). I am trying to update the quantity information for a product from an external source. So far I based my code only on the product information and I am not sure if this is correct. What is the purpose of Quote Items? How about an bundled of configurable product? Do you have any recommendation on how to get the individual items from a bundle product? Thanks I want to thank both responders so far for their effort but their responses are pretty far

Is there a Cart/Catalog app out there that isnt a full site?

旧街凉风 提交于 2019-12-04 09:53:46
Every solution i come across seems to be a complete store with far too many options and too much functionality. I can write my own cart to get the minimal functionality i need out of the frontend, im just trying to cut out the time writing a complex backend. What im really looking for is something that offers the backend functionality for a product catalog, order management, etc. while providing a smooth and consistent API to access the data for my completely custom frontend application. The frontend will be in PHP so the API would have to be native PHP or some kind of web service interface i

Prestashop - Change order status when payment is validated

醉酒当歌 提交于 2019-12-04 09:48:33
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 == Configuration::get('PS_OS_PAYMENT')) { $oOrder->setCurrentState(Configuration::get('XXXXXX_STATUS

Extending the Spree::Product model/class

馋奶兔 提交于 2019-12-04 08:16:47
I'm using Spree in a Rails 3.2 app of mine and I want to extend Spree's Product class to better suit my needs as for example to establish a relationship with another model in my app. What's the best way to do this? I could not find anything about it in the project documentation And what if I want to add new attributes/fields to the Product resource? I can't find it's migration either :/ Thanks in advance :) Martin Lang The best thing to do here is to create a product_decorator.rb in your app. This will look like the following: Spree::Product.class_eval do end In there, you can feel free to

Good guidelines for developing an ecommerce application

社会主义新天地 提交于 2019-12-04 08:12:55
问题 I'm making an ecommerce application on Android and, as it is my first serious project, I'm trying to figure out beforehand the best approach to do this. The application talks to a web service (magento api, meaning soap or xml rpc unfortunately) and gets all the content on the phone (product categories, product details, user credentials etc.). I think it should do lazy loading or something like that. So, I was thinking to keep the user credentials in a custom Object which will be kept in a

Magento or Prestashop, which is better? [closed]

让人想犯罪 __ 提交于 2019-12-04 07:33:46
问题 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 . I want to find an ecommerce solution for my little shop. My friend tells me that Prestashop is very easy to use and develop modules

Credit card expiration dates - Inclusive or exclusive?

做~自己de王妃 提交于 2019-12-04 07:27:23
问题 Say you've got a credit card number with an expiration date of 05/08 - i.e. May 2008. Does that mean the card expires on the morning of the 1st of May 2008, or the night of the 31st of May 2008? 回答1: It took me a couple of minutes to find a site that I could source for this. The card is valid until the last day of the month indicated, after the last [sic] 1 day of the next month; the card cannot be used to make a purchase if the merchant attempts to obtain an authorization. - Source Also,

Query was empty PHP error

与世无争的帅哥 提交于 2019-12-04 05:21:39
问题 I am trying to build a cart using MySQL. I keep getting this error 'Query was empty' when I run this code. Please help I've tried several things such as putting the variables inside the string instead of concatenating it. <?php ob_start(); ?><?php require_once("../include/membersite_config.php"); ?> <?php require('../products_reloaded/config.php'); session_start(); $user = $_REQUEST['user']; $user = mysql_real_escape_string($user); $itemNum = $_REQUEST['itemNum']; $itemNum = mysql_real_escape

Process raw HTTP request content

*爱你&永不变心* 提交于 2019-12-04 05:12:46
I am doing an e-commerce solution in ASP.NET which uses PayPal's Website Payments Standard service. Together with that I use a service they offer ( Payment Data Transfer ) that sends you back order information after a user has completed a payment. The final thing I need to do is to parse the POST request from them and persist the info in it. The HTTP request's content is in this form : SUCCESS first_name=Jane+Doe last_name=Smith payment_status=Completed payer_email=janedoesmith%40hotmail.com payment_gross=3.99 mc_currency=USD custom=For+the+purchase+of+the+rare+book+Green+Eggs+%26+Ham

Is there any way to prevent Woocommerce from defaulting to one particular (local pickup) shipping method?

江枫思渺然 提交于 2019-12-04 02:36:58
问题 I want to prevent Woocommerce from defaulting to the local pickup option . I do need the local pickup as and option for customers, but not as a default. I have encountered what I think is a bug in woocommerce and there is a workaround documented; but the workaround will not work for me because ( apart from hacking the Woocommerce core ) I don't want to default to the most expensive method either, which is how the workaround operates, because I have premium methods. There is a setting for