Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ubercart]

Use it for the e-commerce module developed for Drupal: Ubercart.

0
votes
0answers
9 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
0answers
16 views

8 - Ubercart's add to cart external link not working when triggered from external domain

When trying to add a product to cart from an external domain the site gives error. The add to cart url looks like this on the external site which has a button with the link below: https://...
0
votes
0answers
27 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
votes
0answers
10 views

Remove ubercart all taxes

I am using Ubercart module in D8. Now my client wants to show taxes and as well as add in total some conditions in checkout and review order. How should I remove all taxes in the Ubercart module?
0
votes
0answers
11 views

Restrict user to buy only one time

Installed an UberCart store on Drupal 8. There is a requirement: A product should be bought only once (1 Quantity). Tried to use hook_form_alter() on cart and checkout pages. But, need to ...
1
vote
1answer
40 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
1answer
18 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
0answers
14 views

Is it possible to create an Ubercart Orders view that includes line item details?

I would like to create a View of Ubercart Orders that includes details about the order itself -- collecting the various line items into a single column. Ultimately this will be used to generate a ...
0
votes
1answer
27 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
1answer
37 views

Custom RulesAction context for ubercart 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
1answer
39 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
1answer
27 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
1answer
46 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
0answers
19 views

Send payments to 2 different paypal accounts from 1 order

I asked this question in the normal stackexchange before finding this section. I apologize for a duplicate question. I have Ubercart setup and working with paypal. Some of our products are kits. We ...
0
votes
0answers
9 views

Is there a way to show discounted price on product view using uc_discount_alt module?

So far i see that every discount applies to the products only when they are in the cart, but if i want to display discounted price together with product options price change can you recommend some ...
0
votes
0answers
25 views

Ubercart express checkout

I want to add a button with an express checkout functionality for my Ubercart products so that when pressed it puts the product to the cart and gets directly to /cart/checkout. How do I do that?
0
votes
1answer
43 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 ...
1
vote
2answers
171 views

How can I get the user ID from an order? [closed]

How can I get the user ID from an Ubercart order?
1
vote
1answer
168 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
1answer
35 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
1answer
174 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
1answer
92 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
1answer
52 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
1answer
93 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
1answer
58 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
1answer
216 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
0answers
134 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
1answer
76 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
1answer
211 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
0answers
42 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
1answer
18 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
1answer
387 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
1answer
233 views

Generating Ubercart orders programmatically

I am trying to generate ubercart orders programmatically in Drupal 8 and am doing it this way: $order = Order::create(array( 'uid' => $uid, 'order_status' => uc_order_state_default('...
1
vote
0answers
139 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
0answers
120 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
1answer
141 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
2answers
540 views

Programmatically get product name by using order variable

I need to get specific product name with order variable($order) in Ubercart. How can I achieve this programmatically. Also suggest me if there is any other way to get product name programmatically. ...
1
vote
0answers
17 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
2answers
119 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
1answer
67 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
1answer
376 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
0answers
95 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
0answers
22 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
0answers
44 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 ...
3
votes
0answers
51 views

Filling attributes with token [closed]

Has anyone ever come across the need to pass on values for product attributes in Ubercart through URLs? I've been trying to find something and the closest is https://www.drupal.org/project/...
0
votes
1answer
109 views

How to add a “continue shopping” button after emptying cart in Ubercart?

This is really a weird issue. I get this on my ubercart page without any possibility for redirection: One hint I'm eager to try is a drupal_goto function. But how do I add this to which file to ...
4
votes
1answer
170 views

How can I make my ubercart catalog content available to users?

I can't make my ubercart catalog content available to logged in users. They can see the catalog page title but not the products. This is what a logged in User can see: This is my catalog views ...
1
vote
1answer
244 views

Why am I unable to send an email order using the Ubercart and Smtp Authentification module?

After Ubercart checkout submitting order, I get this error: Unable to send email. Contact the site administrator if the problem persists. I am using the SMTP Authentication Support module, I ...
2
votes
1answer
85 views

How to check payment successfully?

I use module ubercart. Payment method is PayPal. I want process some task after user payment successfully. I write custom module. I want know how to check user payment successfully with some hook, ...
1
vote
0answers
44 views

How to add roles to user after payment successfully?

I have use module ubercart to create product. I want user after payment successfully, user will be created, add add roles to user. How can i do that with ui or custom module? I tested module rules ...