ubercart

How can I execute a custom script after purchase with Ubercart for Drupal

旧时模样 提交于 2019-12-25 04:39:15
问题 I hope I'm not using stackoverflow.com in the wrong way: asking this question! Recently I ventured in to starting my own business to Sell software without realising the terrible implications that come with ecommerce - the only way to buy my software I offer. This would be fine if I was just selling the file downloads and/or shipping...But I'm not! I the hope that it would be easier (and alot cheaper) I am only offering digital downloads! All this is fine, and I only have one hurdle to

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(

Drupal Ubercart: multi-currency?

余生长醉 提交于 2019-12-14 03:42:10
问题 what's the safest way to integrate multi-currency support to Ubercart ? I found this module: http://drupal.org/project/multicurrency but it is still under development and it says it requires custom installation procedure to be installed. Is this the main way to do it ? Or am I missing something ? thanks 回答1: I've solved with this great tutorial: http://vintagedigital.net/content/how-add-multicurrency-support-ubercart 来源: https://stackoverflow.com/questions/3195279/drupal-ubercart-multi

drupal :: order complete hook and upgrade user permission/roles

梦想的初衷 提交于 2019-12-12 11:58:06
问题 I want to be able to upgrade user's permission after the order status shows complete. I figured out that I should use hook_order hook in order to achieve that. But how do I get to know which user has created that order and how do go about updating the permissions as well as setting up the expire time for that role automatically. I want this hook to be called as soon as the payment is made and the order is completed. Any pointers will be valuable. 回答1: In the hook_order , 3 parameters are

How to configure paypal sandbox auto return URL?

∥☆過路亽.° 提交于 2019-11-28 17:34:03
问题 I am using ubercart module in Drupal , and I need help to configure return URL from PayPal sandbox . I tried creating business account in https://developer.paypal.com/webapps/developer/dashboard , but that also is not working. 回答1: When you say you're unable to create a Business account what error are you receiving or are you unable to login? Please provide more details on this and feel free to contact me via the details in my profile. Here are the steps to enable Auto Return in your test