Questions tagged [ubercart]
Use it for the e-commerce module developed for Drupal: Ubercart.
716
questions
0
votes
0
answers
20
views
"Send an order email" doesn't translate
I am running a Drupal 7 website and I am having a little trouble (I think) dealing with Rules and translated emails.
Basically, I want Ubercart Order Status Update emails to be in the preferred ...
0
votes
0
answers
20
views
Catalog template?
I have a Drupal 7 / Ubercart 3 installation where I have been struggling to implement a multi-lingual catalog.
On the individual Product level, things now seem to be working correctly. I say this ...
1
vote
2
answers
33
views
How to call a check for a product class in Ubercart
In the Ubercart D7 uc attribute module I am trying to run code on the fieldset attribute if the product is a specific product class in the module with an if statement.
This calls an if for payment ...
0
votes
0
answers
20
views
I want to run checking code on Ubercart product attribute
I want to run checking code on a Ubercart product field attribute before allowed to proceed with the checkout. The code could run right below or in conjunction with the "required" - not ...
2
votes
1
answer
511
views
How to exclude contributed modules from being upgraded when we run composer install or composer update?
I want to exclude contributed module Ubercart from being upgraded when we run composer install or composer update ? What change should I add in the composer.json so that it ignores ubercart ...
0
votes
1
answer
73
views
I cannot update because of Ubercart and Google Analytics module error
I tried updating my Google Analytics module today, but when I went to the update.php page I got this error:
Unresolved dependency. Google Analytics (Version !=7.x-2.4 required)
Google Analytics for ...
0
votes
0
answers
170
views
Adding CSS in both custom theme and admin theme
How to modify some css to a tapir_table display being used in both places:
in my custom theme and administration theme
Specifically, i would like to make the qty and sku columns displayed on both ...
0
votes
0
answers
42
views
How do I disable the "Add to cart" button when a user has already a product in the cart?
I need to sell a node on my website and I'm using the Ubercart and Paypal Express Checkout modules. It works: I can buy a node by clicking on the Add to cart button on the product page and Checkout ...
0
votes
1
answer
67
views
Sort the products by SKU when seeing order details
I have an Ubercart commerce website in Drupal 7.
I'm trying to sort the products listed inside a given completed order by the SKU value.
This is the link: /admin/store/orders/1 or /admin/store/...
0
votes
2
answers
800
views
How to redirect the user to an external website with POST data?
I want to implement an offsite payment method and everything is going well except the fact that I can't find how to redirect the user to the offsite payment gateway after submitting the cart checkout ...
0
votes
1
answer
19
views
Different shipping $ for west coast
Let me just preface this by saying I know nothing of Drupal. I am a wordpress developer but my company just inherited 2 drupal sites from a company we recently purchased. I am using Drupal 6.25.
I ...
0
votes
1
answer
79
views
Custom line items to be included in $order->getTotal()
I am using Ubercart for our e-commerce on Drupal 8 website. Everything seems to be working fine except for the $order->getTotal() function - it does not somehow pickup the amount from my custom ...
0
votes
1
answer
18
views
Purchases with points occupying ubercart
I want to use ubercart to create a site for online purchases but I would like to know if you can use points as a form of payment, I mean that users are placed points with which they can buy items and ...
0
votes
1
answer
290
views
How can I add a custom text field on the product detail page?
I want to add a custom text field on the product details page; its value will be shown on the cart and checkout pages. I have added the text field on the product, but it's not saved. What am I missing ...
0
votes
0
answers
36
views
Adding product image to ubercart checkout form
Has anyone able to get through altering/overriding the core cart checkout form? Any hooks that can help?
I am trying to add a product image to Ubercart /cart page ie. CartForm.
0
votes
0
answers
64
views
Grant file access to file downloads
I am able to sell a file using Ubercart Drupal 8 module. However, file download permissions are not granted to the user purchasing the file.
Do we have a Rule in place for this? How can I achieve ...
1
vote
1
answer
94
views
How can I check if the cart has shippable products?
How can I check if the cart has any shippable product in Ubercart 3 for Drupal 8? Previous version had uc_cart_is_shippable() method which Drupal 8 module does not seem to have by default.
Is there a ...
0
votes
1
answer
195
views
PaymentMethodManager() get plugin on NULL ubercart error
Hi when trying to create an order in checkout state, the order gets created however when trying to view the order it errors out with the error below:
Error: Call to a member function getPlugin() on ...
0
votes
1
answer
44
views
Add an extra to the price of the product
Guests can add a meal plan to their cart. They can compose their own formula. Type of sandwich, drink and dessert.
For example the list of drinks is a list of 'taxonomy' terms.
However some drinks ...
1
vote
1
answer
160
views
Custom action context for order
I'm trying to write a custom RulesAction to perform an operation after an order status is updated. Basically, I want to perform this operation after checkout is complete (but this event doesn't exist ...
0
votes
1
answer
77
views
How do I clear the order cache?
I manually update an order using the following code.
db_update('uc_orders') // Table name no longer needs {}
->fields(array(
'order_status' => 'payment_received',
))
->condition('...
0
votes
1
answer
64
views
Generate and email coupon code to customer after they purchase full price item
We have a situation where we want to be able to automate a process for certain customers to receive a discount coupon after making a purchase.
Ideally, customers could just throw two of whichever ...
0
votes
1
answer
127
views
How do I alter prices?
This is a follow up to Ubercart alter product price when product added to cart.
I have an attribute called "Billing Term". It has options: 6 months, 12 months and 24 months. If 6 months is selected, ...
0
votes
1
answer
86
views
How to remove ul li formatting from list of attributes in Ubercart order email template?
I would like to update my customer order email and printable invoice so that each product line item looks like this:
1 x SHIRTRED | Red | Tshirt
1 is the quantity ordered
SHIRTRED is the SKU
Red is ...
0
votes
0
answers
266
views
Theme Ubercart product node and form in Drupal 8
I've been trying to do a "simple task" with Drupal 8. Using Ubercart 4.x, I want to totally change the product (add to cart) page.
For that I've created a twig file called node--product.html.twig and ...
0
votes
1
answer
82
views
Programmatically Add Features for Role assignment in Ubercart Drupal 7 product node
I am trying to create a product programmatically and set it features for role assignment, that a user gets a specific role after he purchases, i tried all the ways i can but couldnt get it working. ...
1
vote
1
answer
413
views
How to check in a Rules Condition if an Ubercart product is out of order?
There isn't a good support for "out of order" in Ubercart for Drupal. I'm trying to fix that with the Rules module.
I'm trying to add a rule that disables the product after the stock is updated, ...
0
votes
1
answer
159
views
How to replace all Add To Cart buttons with alternative text in Ubercart for anonymous users?
I need to display the standard Add to Cart button for all logged in users, but anonymous users should instead see text and a link asking them to create an account or login in order to be able to add ...
0
votes
1
answer
62
views
Build and update a form based on another form
On the checkout page, I wish to load a form on a modal whose data depends on the uc_addresses select address drop-down.
I have declared a form through hook_form and add the form to the checkout page ...
0
votes
1
answer
153
views
How to use Ubercart product SKU as a condition in Rules?
I need to display a message on the cart page if one or more specific SKUs are added to the cart.
For example, if a product with SKU # ABC123 is added to the cart, the Rule should be triggered and ...
0
votes
1
answer
86
views
Drupal 7 appending class in uc attribute option radio button
I have this code inside mymodule_form_alter:
foreach ($form['attributes'] as $att) {
foreach ($att['#options'] as $option => $value) {
// Get the name of the option without the ...
0
votes
1
answer
389
views
Druapl 7 Update displayed price of product when quantity changes
I'm new to drupal. What I want is the price to be updated for an ubercart product when I change the quantity the same way it happens with the attributes on the product page.
So far I have a custom ...
1
vote
0
answers
157
views
How can I add a field on the checkout page?
I've already added the field, but it shows only when I edit an order; there is nothing in the checkout page.
I know there is a module, but only for Drupal 7.
How can I add a field on the checkout ...
0
votes
1
answer
314
views
How to fetch data from database in mail template
I'm desperatly trying to get data from the database using a custom module (which is based on ubercart funds) to send a costomized email.
Here is how it makes email :
drupal_mail('ubercart_funds', '...
0
votes
1
answer
433
views
How to pass theme variables in #theme in a form element?
I need to pass product variable defined in hook_theme() and invoked in #theme
but not sure how to pass product variables in #theme
Please suggest.
function storeinv_theme() {
return array(
...
0
votes
0
answers
51
views
Purchase through points
For ex. person A introduce person B and B register in drupal commerce/ubercart site.
Now I want give A 5 points that A can buy other products with him/her points.
How Can I do this in drupal 8?
-1
votes
1
answer
19
views
ubercart product submission form theming
how to render elements in the mysite/node/add/product form to make custom tpl in my ubercart product submission form. I tried node--add-product.tpl.php ; nothing is happening. Im a beginner to drupal. ...
0
votes
1
answer
581
views
Programmatically adding line items to Ubercart order
Can someone please suggest how do we add line items to an Ubercart order in Drupal 8? When I look at the references in Ubercart module, I get this:
// Load line items... has to be last after ...
0
votes
1
answer
413
views
Programmatically generate orders
I am trying to programmatically generate orders in Drupal 8.
$order = Order::create(array(
'uid' => $uid,
'order_status' => uc_order_state_default('in_checkout'),
));
$order->save();
$...
1
vote
0
answers
231
views
Custom Fields/Payment Method Ubercart
I have been looking for a way to add a custom payment with custom fields in Ubercart, but have been unsuccessful in my search.
The only module remotely close to what I need was here: https://www....
2
votes
0
answers
169
views
Using Drupal 7 Ubercart - how can I make 'create order' apply taxes?
When an admin creates an ubercart order from the backend, taxes are not applied. Does anyone have a suggestion as to how to make this happen? Through the drupal interface, or if a custom module, which ...
0
votes
1
answer
250
views
Get order title value from $order variable
I have to get order status and order title from $order variable. I can get order status by $order->order_status. But I can't able to get order title. So how to get order title value from $order ...
1
vote
2
answers
1k
views
Programmatically get the product name from $order [closed]
I need to get the product name using the $order variable in Ubercart. How can I achieve?
1
vote
0
answers
24
views
How to set media rate calculations for shipping?
I am incorporating UberCart into our existing Drupal 7 website. So far I am happy but can't seem to figure out how to set media rate calculations for shipping for publications and regular shipping ...
0
votes
2
answers
445
views
Add exposed filter for user roles
In Ubercart, the uc_order view (admin/structure/views/view/uc_orders) uses exposed filters for status and order ID.
I can add another filter, for example username, email and so on by clicking on Add ...
0
votes
1
answer
90
views
How to clone a content type and all nodes related
My site is using Ubercart, so now I want to use Commerce module instead, the problem now is Product content type, when I turn off all Ubercart modules, Product content type will be disabled.
I have ...
1
vote
1
answer
498
views
How to add "Add to Cart" button using Ubercart?
I'm building a website on Drupal 8 that involves kids videos, that can be sold as separate files. I'm using Ubercart module.
I'd like to know how I can put an "Add to cart" button, linking the video ...
1
vote
0
answers
153
views
Ubercart - add comment pane text to order template
In Ubercart pane settings I turned on comment pane (at admin/store/settings/checkout), that is displayed at checkout page. I'm also overriding default order template an I need to print the comment ...
1
vote
0
answers
38
views
Ubercart order completion not working propperly
I have a problem with the completion of an order. After completion I get redirected to the filled out checkoutpane and and the cart will not empty.
While working on the e-mail template I made a ...
1
vote
0
answers
47
views
Set Sticky enable automatically once ubercart order is completed
I need to set Sticky enable automatically once the customer completes the ubercart order.
I have tried this by creating custom module but didn't work. Here is my code :
function ...