3
votes
Accepted
How to an Add to cart Button to a Content Type?
Below are 2 possible alternatives for setting up a simple shopping cart without using the Drupal Commerce or Ubercart modules (as in your "I don't want a huge functionality like Drupal commerce ...
3
votes
Accepted
How to assign a role to a user depending on order subtotal using Ubercart?
If you want to use that "Order subtotal" in a Rules "Condition", you could try to first add a Rules condition Entity has field (related to the field containing that "Order subtotal").
That's also ...
2
votes
Accepted
What to choose Content Type or Drupal Commerce or Ubercart
Just go (start with) what you call "Plain content types".
For the "rating" requirements, have a look at my answer to "What are recommended modules or processes which support rating based comments or ...
2
votes
How to implement a simple shopping cart without Commerce and Ubercart?
The Light Shop module is a simple and lightweight e-commerce solution which doesn't require the Drupal Commerce or Ubercart modules (as in your question title).
Here is a quote from its project page:
...
2
votes
Accepted
How to add a functionality to views bulk operations?
VBO comes, out of the box, with some predefined (hardcoded) operations that can be applied to each row selected in the view. The available operations are shown within "Selected bulk operations" when ...
2
votes
Accepted
Alter Ubercart Billing/Delivery Panes with User Profile Info
The billing/delivery address panes are driven by a custom uc_address form field. You need to alter it's #default_value object to alter the fields.
For example:
$form['panes']['delivery']['address']['...
2
votes
Accepted
Override Theme table function used in contributed module?
theme_uc_recurring_user_table() is a theme hook (not a table function), and its preprocess function is hook_preprocess_uc_recurring_user_table().
From the preprocess function you can just change the ...
2
votes
How to put a Slider widget into the Better Exposed Filters for Ubercart price and other product features?
Jquery UI and most of its widgets are embedded with D7 core, in misc/ui folder. First add these lines to your theme template file (sites/all/themes/YOUR_THEME/template.php) :
/**
* Implements ...
2
votes
Accepted
When I update my database schema with drush entity-updates. I get an error
Sounds like you are trying to update existing field order_total in uc_order. You can't update it since you have some data in it already. Remove content that uses it (orders), and try again.
Also note ...
2
votes
Accepted
How can I make my ubercart catalog content available to users?
Since you mention that authenticated users can't access your Product nodes, it's most likely that your nodes aren't published, or that there is a module interfering with the access check.
First, ...
2
votes
How to add "Add to Cart" button using Ubercart?
According to this answer:
... The content type has to be an Ubercart product content type, then the
add-to-cart button will automatically show up on that content type
along with all the other ...
2
votes
Accepted
Sort the products by SKU when seeing order details
uc-order--admin.tpl.php is the "default admin notification template". In other words, the email sent to admins to notify them about a new order.
You can change the order of the products listed in ...
1
vote
Accepted
Cannot create hook_menu subitems with proper position in administrative menu
I think the MENU_LOCAL_ACTION type for your sub-menus is not the good choice.
The Menu item types documentation tell us :
MENU_LOCAL_ACTION : Menu type -- An action specific to the parent,
...
1
vote
How do I show a coupon code to customers?
The UC coupon module doesn't have a general purpose coupon retrieval function.
If you're solely looking to retrieve an active coupon, you can follow what the module itself does: query the DB table ...
1
vote
Add product thumbnail to user/%/purchased-files?
You need to change page callback for path user/%/purchased-files in hook_menu_alter() and your custom callback should be based on code of uc_file_user_downloads() function, you need to change it, add ...
1
vote
How to show cart with number of items in Ubercart?
As for D8 latest version, it looks like uc_cart_get_contents is not working anymore. So here is how I managed to do it :
/** @var \Drupal\uc_cart\CartManager $cartManager */
$cartManager = \Drupal::...
1
vote
How to migrate Ubercart Shop (drupal 6) to another CMS / Shop system as Commerce, Magento, etc?
How to migrate Ubercart Shop (drupal 6) to another CMS / Shop system as Commerce, Magento, etc...
A typical approach to migrate such site to D7 is to use the Migrate module.
Is there any ...
1
vote
How to limit adding content of a specific content type to paid memberships only?
Assuming that your "Add blog post" matches with an URL like node/add/blog, you can use the Rules module to stop any user who is trying to use that URL, if that user does not have access to the role "...
1
vote
Show a list of my product with my coupon discount
==UPDATED==
Looks like you need views integration for the UC Coupon Module, not fully supported yet.
Maybe you want to try and port this patch to Drupal 7?
1
vote
What to choose Content Type or Drupal Commerce or Ubercart
We're also planning on creating Mobile App for this so user can manage
products from App.
I highly suggest you go with Drupal 8 as it's mobile ready and friendly.
If you are not selling anything, ...
1
vote
How to check for product taxonomy term in Rules actions (Ubercart)
Have a look at this, rather basic, rule (in Rules export format):
{ "rules_check_taxonomy_term" : {
"LABEL" : "Check Taxonomy Term",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"...
1
vote
Setting product SKU
The only way I could get it to work was to do this:
$node->model = $sku;
node_save($node);
The reason I could not get values was because of revisions. I changed function "uc_product_get_models". ...
1
vote
Recurring payments
If what you want/need is an order (multiple products) to be recurring:
Commerce Recurring
If what you want/need is a product (often times a service like hosting or a software license or a paid ...
1
vote
Accepted
Is there a way to add a Captcha to Ubercart?
I am assuming you are talking about the add to cart form. Please share on what page or place you need captcha?
If you cannot find a module, then you need to do exactly what the captcha module does,
...
1
vote
Payment Gateway integration on selecting user profiles
Drupal Commerce would probably be a better choice. I've used it on two non-standard ecommerce systems and it works well. It's very flexible and the rules integration would allow you to do things like ...
1
vote
Can`t access config panel after the installation of Ubercart and e-commerce modules
You are using dpm function to print variable. To fix this issue you just need to enable the devel module or comment the dpm function.
1
vote
Accepted
How to make an existing content type a product in Ubercart 3 and Drupal 7?
Have you simply tried to put the machine name of your existing content type in Class ID, and its human name in NAME ?
I've had such problem 3 years ago, and I solved it so. More, for tests purpose I'...
1
vote
Accepted
Get/print current Ubercart currency via template.php
/**
* Implements hook_node_load().
*/
function NAME_OF_MY_MODULE_node_load($nodes, $types) {
$language = $GLOBALS['language']->language;
if($language == 'en') {
$variables['...
1
vote
Accepted
Accessing product price in template.php
The node object is made available through the $form array in $form['node']['#value']. You can find list & sell price through the $form['node']['#value']->list_price & $form['node']['#value']...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ubercart × 7157 × 221
6 × 105
views × 57
commerce × 50
theming × 37
users × 35
rules × 34
payment-gateways × 30
forms × 25
entities × 24
8 × 22
taxonomy-terms × 22
nodes × 21
hooks × 16
ajax × 14
emails × 13
media × 10
migrations × 9
files × 8
feeds × 8
importing-exporting × 8
notifications × 8
database × 7
blocks × 7