Questions tagged [plugin-craftcommerce]

Use this tag for questions relating to the Craft Commerce product.

Filter by
Sorted by
Tagged with
1 vote
0 answers
100 views

Is any way to add translations for Braintree Gateway dropin interface?

The correct way to add translation to an instance of braintree.dropin is to add options.translations array when calling the braintree.dropin.create method, for example: if ($dropinUi.data('locale') =...
Alexey G.'s user avatar
1 vote
1 answer
202 views

Applying coupon codes via URL

I was wondering if it was possible to allow a customer to apply a coupon code using a URL or URL params in Commerce 2. I haven’t been able to find any questions on stack exchange or on the web, but ...
kamicrafted's user avatar
1 vote
1 answer
123 views

Let admin create price offers/quotes for customers in Commerce

Does anyone know of a plugin (or coming functionality in Commerce 3 or 4) that allows admin to create price offers/quotes for a customer and then send it to the customer's email for review? Scenario I ...
nitech's user avatar
  • 679
1 vote
1 answer
114 views

Set base 'shop' URL to something else in Commerce

I am completely new to Craft and to be honest, really struggling to get my head around how it all works at the moment. I've got loads of, what I feel, is quite basic questions that should be ...
zigojacko's user avatar
  • 135
1 vote
1 answer
159 views

disable guest accounts for commerce

Is there a method to remove the ability for commerce to allow guest accounts? I want to allow only registered, logged-in users to be able to place orders.
John Merrymint's user avatar
0 votes
1 answer
65 views

Invalidate cache on new order

I have a list of orders from Commerce 1 (Craft 2) in the frontend. I want to invalidate the cache when a new order is placed but it doesn't work: {% set latestOrder = craft.commerce.orders.first() %}...
KSPR's user avatar
  • 3,786
1 vote
1 answer
92 views

How to toggle main product image from multiple images

I'm having some trouble figuring out how to properly update the main product image from a set of images that are available. Within the product detail page, I have a large default image that is shown ...
kamicrafted's user avatar
1 vote
1 answer
63 views

Having issues looping through variants for Commerce 2 Products using Element API

I'm currently able to return the first variant using the following: <?php use craft\commerce\elements\Product; use craft\helpers\UrlHelper; return [ 'endpoints' => [ 'products.json' =>...
kamicrafted's user avatar
2 votes
0 answers
29 views

Prevent Shipping from being discounted

Is it possible to prevent a coupon code from also discounting the shipping costs associated with an order? We've run into a situation where a customer cart totaled $0 after they used a coupon code we ...
Jon's user avatar
  • 33
2 votes
0 answers
36 views

Is it possible to set up Amazon's "Subscribe and Save" type feature for Craft Commerce

I'd like to allow customers to be able to automatically set up recurring purchases at a discounted price, much like Amazon's Subscribe and Save. I had originally skimmed through the subscription ...
kamicrafted's user avatar
0 votes
1 answer
477 views

Stock Levels for Commerce 2

I am putting together a proposal for an eCommerce site - one of the (obvious) requirements is inventory management. I do not see anything specific in the Commerce 2 docs. Basically, want to enter ...
Roi Agneta's user avatar
  • 1,463
1 vote
1 answer
48 views

Is it worth caching product blocks for use on a category page?

So we have a Commerce project that shows lots of products per page/category as per any standard store. Each product block comprises: Product name Product price Brand (via category field) [eager ...
James Greig's user avatar
1 vote
1 answer
260 views

Embedding a podcast player onto my Craft site

I'm pasting the embed code below into the HTML section but the player is not appearing. I do not have access to templates on my site. Is there a quick fix to get this to work? I tried adding a plug ...
Simone's user avatar
  • 11
1 vote
1 answer
126 views

PayPal Pro In Craft Commerce

I am trying to integrate PayPal Pro into Craft Commerce, I have my API details added to the payment gateway and I have disabled test mode. I know these keys work as they have been used before. On ...
WhoIsMostash's user avatar
1 vote
1 answer
152 views

Craft Commerce 1 - Stripe payment intents SCA ready

I am using Craft CMS 2 with Commerce 1. I want to update to the new SCA ready (3d secure) Stripe integration. Has anyone made this already?
thomas's user avatar
  • 81
1 vote
1 answer
92 views

Craft Commerce: fixed product variants/multiplier

We have a client that is selling products with fixed rate variants. In other words so that the base cost is the only price defined whilst others are based on a globally defined multiplier, eg. 1.5x or ...
Cole Henley's user avatar
  • 1,741
1 vote
1 answer
138 views

Craft 3 / Commerce 2 + Multisite & COMMERCE_PAYMENT_CURRENCY

I've just done a Craft 2 > Craft 3 upgrade, and it previously used different locales to change the default currency, depending on the locale. In Craft 2, I would set COMMERCE_PAYMENT_CURRENCY in my ...
Jason Mayo's user avatar
1 vote
2 answers
525 views

How-to display a dropdown field with optgroups?

The display of a dropdown without optgroups is defined: {% set field = craft.app.fields.getFieldByHandle('<FieldHandle>') %} <select name="fields[<FieldHandle>]"> {% for option ...
user3211900's user avatar
1 vote
0 answers
31 views

EagerLoading on category pages with different product types

I have a category template like so; {% extends '_layouts/_site' %} {% set products = craft.products .with( [ 'department', 'productImage', 'finish', 'pcd', 'variants', 'thread', '...
Terry Upton's user avatar
  • 1,894
0 votes
2 answers
274 views

How to install plugin - Non-developer

I am not a developer and I hope someone can help me. I had purchased a Mailchimp Commerce plugin via the plugin store but I don't know how to install it or find any documents on how to. I do see the ...
Faraz's user avatar
  • 19
0 votes
0 answers
30 views

Getting Store Currencies Using Element API and Craft 3

How can I return the available store currencies using the Element API? I think it uses craft\commerce\Plugin::getInstance()->getCurrencies();but unsure how to go about creating an endpoint for ...
Jai Sandhu's user avatar
1 vote
1 answer
180 views

Craft 2 Commerce 1 cart session expiry

Is it possible to change the cookie timeout just for the cart? E.g. I'd like to clear abandoned carts after X hours and keep all the other sessions untouched (e.g. user sessions etc). Please advise ...
biko's user avatar
  • 670
1 vote
0 answers
127 views

Upsell/Cross-sell plugin on Craft Commerce

I am an end-user and I help run an e-commerce company. We are exploring Upsell/Cross-selling during checkout and I am not able to find a plug-in or documentation on how to implement it. Has anyone ...
Faraz's user avatar
  • 19
0 votes
0 answers
116 views

Setup different shipping costs per product category

I have multiple to products in two different categories; shirts and mugs. I want different shippings costs for these categories. Currently I have a shipping method (default) which is (apparently) ...
Arjan's user avatar
  • 151
1 vote
1 answer
85 views

Craft CMS Product Types

I am trying to setup some products in my test website. I am unsure how I should go about creating the products. Should each product category be created as a product type? An example is, if I have ...
Callum's user avatar
  • 193
1 vote
1 answer
71 views

Show multiple products (urls/pages) on the front-end with dynamic titles/descriptions/meta based on a single product in Craft Commerce

I am considered the best way to set this up in Craft and how to handle this with front-end Urls, templates and routes? So I products with variants for Wheel Spacers, (Wheel Spacers are a product type)...
Terry Upton's user avatar
  • 1,894
2 votes
0 answers
102 views

Is it possible to pass metadata to Stripe from Craft Commerce

With Craft 3 and Craft Commerce 2 with the P&T Stripe gateway is it possible to pass metadata to Stripe? I've tried various combinations of hidden fields but without success so far. I was hoping ...
Tim Print's user avatar
  • 343
2 votes
2 answers
447 views

Get last item added to cart

Does anyone know a nice way to get the last lineItem(s) added to a cart in craft commerce via twig template? Example use case, an 'added to cart' confirmation page. I know for this you could query ...
Seraphim Jester's user avatar
1 vote
0 answers
329 views

Is it possible to take a partial payment of an order in Craft Commerce?

I have a request from a client to be able to take deposits for events purchased through craft commerce. These are high ticket items and customers would like to spread the cost of payment over several ...
Dave Coggins's user avatar
1 vote
1 answer
74 views

Query a subselection of Sales and Discounts

Imagine a less than perfect world, where a 'bundles' product type is just a new product with a sale/discount on it. Would there be any way to query all sales and all products only related to these but ...
Seraphim Jester's user avatar
1 vote
1 answer
310 views

Searching for item SKU in Commerce orders

I'm trying to show some Commerce 2 order information on the front-end. I can't work out the correct syntax. I'm trying to list orders that include a specific product. I have orders for item SKU "...
Tim Print's user avatar
  • 343
1 vote
1 answer
224 views

Asset Filename Query using Product SKU

I'm moving an e-commerce site over from EE. Many of the products have a "product image". Many do not, but we have an assets directory full of images that match their SKUs. When listing the products ...
Jeremy Latham's user avatar
1 vote
1 answer
33 views

Commerce 'Edit Order' page taking 10 seconds or more to render

The individual order view in the CP is taking 10 seconds or more to be displayed, how can we avoid/debug this? PS. Can ignore the errors in the log (I think) as they are just mmikkel\cpclearcache\{...
James Greig's user avatar
1 vote
2 answers
57 views

Issues with Craft Commerce [closed]

We have a dutch website build with Craft CMS and for the webshop Craft CMS Commerce. This has been done by a design company. We don't receive any orders and I am wondering if the whole process is okay....
Marina's user avatar
  • 11
2 votes
1 answer
172 views

Commerce 1: Different default order status based on product types

I want to assign different default order status based on product types. Is this possible? What I need to achieve is to send different email notifications based on product types. Can this be ...
biko's user avatar
  • 670
2 votes
1 answer
286 views

Get and display a product's variant fields in twig

I'm working on a product template that can display products of any type. Various product types have varying numbers of variant fields each with their own options as other products. (All of my variant ...
Mark J. Reeves's user avatar
1 vote
1 answer
156 views

Get a specific product with Element API, Commerce and Craft 2

How do I get a specific product via Element API? Here's what i have so far 'api/product' => function() { $productId = craft()->request->getRequiredQuery( 'productId' ); return [ ...
Lumiere's user avatar
  • 11
2 votes
0 answers
200 views

Line item not found when trying to remove item from cart

I'm trying to remove a product from a cart but i'm getting an {error: "Line item not found"} error and I can't figure out why. Here is my code: $('.js-item').on('click', function(e) { e....
nmsdvid's user avatar
  • 305
1 vote
0 answers
51 views

Is it possible to change the group that a user belongs in the front-end?

A little background: The website runs on Craft v.3 Pro and Commerce v.2 Pro The user can register as a member from the front-end. They will be able to select only one of 3 different groups to ...
Panos Spiliotis's user avatar
1 vote
1 answer
110 views

Custom Plugin for ZenDesk Tickets [closed]

I need all of the custom fields on an order submitted to ZenDesk to create a new ticket once the order is completed. Once a ticket is created in ZenDesk, we will need the ticket number saved on a new ...
Raj's user avatar
  • 31
2 votes
0 answers
261 views

Creating multiple plan subscriptions

Versions: - Craft CMS (3.1.21) - Craft Commerce (2.1.2) - Stripe for Craft Commerce (1.2.0) Problem: - My website offers user's ability to subscribe to several subscriptions at the same time. ...
Gavin Vaske's user avatar
1 vote
1 answer
34 views

Individual persistent property per item in stock

This is more advanced: We want to sell activation keys for digital products. We know that in Craft a variant has a stock. So every single item "in" the stock needs a unique activation key. When we ...
blacksmith's user avatar
1 vote
1 answer
543 views

CDbTransaction is inactive and cannot perform commit or roll back operations

Folks: I've been running this site for 2 years without issue but today, this cropped up: "CDbTransaction is inactive and cannot perform commit or roll back operations." This occurs when adding a ...
Wonko's user avatar
  • 471
1 vote
1 answer
202 views

Clear template cache after update sale on Craft Commerce

How can I clear products template cache after update sale ? Because product price don't change ... Thank you.
akagibi's user avatar
  • 21
1 vote
1 answer
174 views

How to display the featured image on a Commerce product:

How do I display the featured image on a Commerce product: <figure> <a href="{{ entry.url }}"> <img src="{{ entry.featuredImage[0].getUrl('medium') }}" alt=""> <...
Peter Eastwood's user avatar
1 vote
1 answer
4k views

Unexpected token "name" of value "name" ("end of statement block" expected)

Internal Server Error Unexpected token "name" of value "name" ("end of statement block" expected). Getting this error on my commerce/products template. What am I missing? {% extends 'shop/_layouts/...
Peter Eastwood's user avatar
1 vote
0 answers
27 views

Exclude User Group from Sale

Is there a way to exclude a User Group from a sale? We have a trade user account that applies a flat 20% discount across all products but we're trying to run a different sale for all customers on a ...
RyanB12's user avatar
  • 11
2 votes
1 answer
709 views

Craft commerce and invoices

In general what is the best practice to handle invoices from orders made in Craft Commerce ?
nmsdvid's user avatar
  • 305
1 vote
1 answer
911 views

Dynamically update line item in Commerce 2

I'm currently trying to adjust the line items in a particular cart/order after an event is triggered. I've got: use craft\commerce\Plugin as CommercePlugin; $this->requirePostRequest(); $request ...
Jason Mayo's user avatar
1 vote
1 answer
127 views

Donation Status Commerce 2

Currently trying to use the new Donations feature of Commerce 2 - https://docs.craftcms.com/commerce/v2/donations.html The order goes through fine and I can see the donation purchasable in the order. ...
Jason Mayo's user avatar

1
3 4
5
6 7
17