e-commerce

PayPal: pass the email address to the return/“thank you” page

那年仲夏 提交于 2019-12-04 02:11:21
问题 I've successfully created a small "pay now" button with PayPal IPN and a listener. The button itself is wizard-generated. After the payment, the user is redirected to a return/"thank you" page on my host. Everything works as expected, but I need to receive the customer e-mail on the "thank you" page too: how can I do that? 回答1: You can get the user email using the Payment Data Transfer (PDT), which sends a GET variable named tx to your redirect url. The tx variable contains a transaction

Ecommerce::Shopping cart::Where should i store shopping cart data in session or in database

烈酒焚心 提交于 2019-12-03 18:49:16
问题 Where should I store shopping cart data in session or in database? (I think in amazon.com shopping cart after user logout and after month login again his orders that he choose in shopping cart saved) Thanks, Yosef 回答1: Of course shopping cart data is a critical data. Where to save this data it depends on that user which your e-commerce system works. With Not Signed (yet) users - You have to save this data on web storage, html5 gives you ability for this.Simple using Front End Storage, which

add a new column for special price in grid in admin panel in magento

筅森魡賤 提交于 2019-12-03 17:16:50
I am designing an admin module in Magento 1.4.2. I am developing a grid layout displaying the product details (product name, SKU, price, special price, qty) I displayed all the columns. I cannot figure out how to display the special price in one column. I cannot retrieve the special price. Help me to solve this. I used this code for getting the price. $collection->joinAttribute('price', 'catalog_product/price', 'entity_id', null, 'left', $store->getId()); This code I used for adding a column for price. $this->addColumn('price', array( 'header' => Mage::helper('catalog')->__('Price'), 'type' =>

Shopping Cart API for any payment gateway? (PayPal at least required)

半腔热情 提交于 2019-12-03 16:48:10
问题 I'm trying to find a java based API that wraps up the details of processing a credit card transaction or purchase via PayPal at a minimum, and other gateways as a plus in an IPN fashion (ie no products required, just an invoice amount) As a bit of a simplification, I think I should be able to do something like the following pseudocode: shoppingApi.postTransaction("paypal", amount, currency, invoiceId, purchaseDescription) and later on during a scheduled task or on notification from an IPN url

magento sales_order_place_after observer

自闭症网瘾萝莉.ら 提交于 2019-12-03 16:10:39
问题 I'm trying to write an observer that will export order data when an order is placed. I haven't written any modules before. Basing my implementation on this article: http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/customizing_magento_using_event-observer_method so far I'm just trying to trigger some dummy code to write to a file. I'm not getting anything showing in my log, and the file's not being modified. The apache user has permission for

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

拟墨画扇 提交于 2019-12-03 15:24:04
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 go be to store a table like the following for the price list: CREATE TABLE prices ( id BIGINT auto

Adding Custom Signup Attributes in Magento 1.7

▼魔方 西西 提交于 2019-12-03 15:20:07
问题 I have scoured the web for tutorials for adding custom signup attributes in Magento. While there are a few solid tutorials out there, my favorite being this one: custom customer signup attributes but none are updated for Magento 1.7. Let me know if anyone has a tutorial to recommend or knows the steps necessary to add custom signup attributes in Magento 1.7.x. I can tell you that myself and many other dev's will be incredibly grateful since this question has also been posted on the Magento

How Do I Make a SagePay BuyNow Button?

雨燕双飞 提交于 2019-12-03 15:01:25
问题 With PayPal, I can create a BuyNow button pretty easily, containing my merchant info, price, tax, shipping, etc. Is this possible in SagePay? 回答1: The desired system is called SagePay Form as far as similarity to PayPal's BuyNow button + PDT process. First, you need to create a FORM like so: <form action="https://live.sagepay.com/gateway/service/vspform-register.vsp" method="POST" id="SagePayForm" name="SagePayForm"> <input type="hidden" name="VPSProtocol" value="2.23" /> <input type="hidden"

Woocommerce Custom Product Text

本小妞迷上赌 提交于 2019-12-03 14:24:13
I'm trying to create a variable product using woocommerce which will include user input text which is specific to each product. To do so I am detecting for 'custom_text' type and displaying a text input field instead of the normal select-option dropdown. This is in variable.php: <form action="<?php echo esc_url( $product->add_to_cart_url() ); ?>" class="variations_form cart" method="post" enctype='multipart/form-data' data-product_id="<?php echo $post->ID; ?>"> <?php $loop = 0; foreach ( $attributes as $name => $options ) : $loop++; <?php if(is_array($options) && $options[0] == "custom_text")

Woocommerce, How to edit the “added to cart” message

自闭症网瘾萝莉.ら 提交于 2019-12-03 12:46:53
When click on add to cart button, the Woocommerce shows the message, view cart, I want to edit this message, actually edit all the span, put some icon etc... Add a filter to your theme/functions.php. The code below just overrides the existing $message. This overwrites $message with an nearly identical one that prepends a "checkout" link to the message. Make sure you return the $message. You can of course just modify the existing message, as the entire thing is passed as a string via the first param or $message var. add_filter ( 'wc_add_to_cart_message', 'wc_add_to_cart_message_filter', 10, 2 )