Questions tagged [plugin-craftcommerce]
Use this tag for questions relating to the Craft Commerce product.
834
questions
1
vote
1
answer
1k
views
How do I import existing products into Craft Commerce with the FeedMe or Import plugins?
I get it that there are hooks, but i can't get enough inside the differences between entries and product, and actually hack together an extension for either of those plugins.
2
votes
1
answer
875
views
Can the Element API export Craft Commerce orders as the element?
Background: We are considering using Craft Commerce to replace Shopify for more custom fields.
However Craft Commerce does not have simple export buttons for exporting orders, so we are looking at the ...
3
votes
1
answer
322
views
Can notes on line items be updated on checkout?
Currently, a user has to click update on each line item to save changes to quantity or a note. The quantity might make sense to the user as it updates the price, but a user could assume that the note ...
3
votes
2
answers
1k
views
Have the country in craft.commerce.countriesList default
Is there a way I can have the array from craft.commerce.countriesList automatically default to the country my store is in?
2
votes
2
answers
607
views
Does Craft Commerce support multi-currency?
After looking at the Features page for Craft Commerce, I didn't see anything regarding multi-currency support. Is this something that's available for certain payment processors?
1
vote
2
answers
2k
views
Craft Commerce - Handling Product Types
I am using Craft Commerce for the first time and am trying to dynamically generate a dropdown menu that contains links to each product type. I thought the best way to accomplish this would be by using ...
2
votes
2
answers
1k
views
Emails not being sent when transaction complete
Folks:
I'm wondering if this is a bug or something else. Essentially, test emails from the system work fine but emails that are supposed to be sent when the order moves to "Processing" do not. The ...
2
votes
2
answers
1k
views
Customizing Craft Commerce Template Paths
Let me apologize right now that my inexperience with Craft is likely the issue here and that my question might be more general to Craft's routing features and not so specific to Craft Commerce.
I'm ...
3
votes
1
answer
786
views
Adding items to cart from related entry not working
Folks:
I have a list of accessories related to a main product. After adding the main product to the cart, the user can then add accessories related to that product.
The code seems to check out. The ...
9
votes
2
answers
924
views
3 for 2 etc with Craft Commerce
I'm looking for a way to offer "3 for 2 / 2 for 1" type options with Commerce.
I've been able to achieve this just by adding a default value to a coupon code input.
It works, kinda. If we need to ...
3
votes
2
answers
404
views
How can I notify store owners when stock levels are getting low?
For a Craft Commerce site, the store owners wish to be notified automatically when a stock is starting to get low. Can this be achieved with a plugin, and if so, how?
1
vote
1
answer
116
views
Displaying image from related CraftCommerce entry
Folks:
I'm using CraftCommerce. I have a main product and several accessories related to that product. Accessories have a title, description, price, and image.
Now, I have no problem pulling the ...
0
votes
1
answer
84
views
How can I specify order when getting all products of a given type?
I am getting a list of all products for a specific type within commerce. All is well & working great.
I would like to know how I can dictate order. In my case, I always want the cheapest product ...
2
votes
1
answer
125
views
With Craft Commerce, how can I call getAllStates from my own plugin via ajax?
I am trying to call $states = craft()->commerce_states->getAllStates(); from within my own plugin, via an ajax request.
MyPlugin.php
if (craft()->request->isAjaxRequest()) {
return $...
0
votes
1
answer
327
views
How to setup the Craft Commerce store both front and back end [closed]
We've a requirement to setup Craft Commerce store as part of our testing, in this process we've gone through the documentation and found that we need to use HTML, CSS or JS code to complete the store ...
1
vote
1
answer
88
views
Why does MultiAdd think I am not sending any items?
I am trying (and failing miserably) to send multipule products to my cart using MultiAdd
I can see the data getting sent - it looks ok? I get a 200 response back, so I know its working, but I'm ...
1
vote
0
answers
81
views
How can I pass a null value to commerce? [closed]
I am populating a drop-down with product variants like this:
<select name="mySelect" class="form-control">
<option value="">Select</option>
{% for purchasable in product.variants %}
...
0
votes
1
answer
2k
views
How can I get/check the contents of a cart via javascript (cookie)?
Within my application, I would like to only show a link to the the user's cart only if there are products in it.
I was going to use javascript to check the cookie I can see getting set. ...
2
votes
1
answer
468
views
Why would Craft Commerce only be using the dummy gateway?
This maybe an obvious one but I thought I should document it here. After purchasing Craft Commerce and enabling your payment gateway of choice after disabling the dummy gateway, payments are still ...
8
votes
1
answer
468
views
Using Commerce to pay for posting entry
I'm trying to figure out how to do the following:
Person registers as new user
User creates a new entry with a front-end entry form
Entry is saved as disabled so it's not publicly visible
User has ...
6
votes
1
answer
3k
views
How can I update custom order fields in the frontend
I am struggling with using additional custom order fields. (Added in the Craft Commerce settings at "order fields", in the field layout manager)
I try to update them like this in the checkout process:...
0
votes
1
answer
242
views
How can I make a product field required?
I have a drop-down of variants of a product. For example t-shirts:
{% for purchasable in product.variants %}
<option value="">Select</option>
<option {% if purchasable.stock &...
0
votes
1
answer
714
views
How can I have more than one product on the same page?
Using Craft Commerce, I would like to offer more than one product on my _entry template.
For example, let's say I am selling a wagon. I have a drop down of variants for color:
<label>Choose ...
1
vote
1
answer
65
views
How can I pre-select a product variant based on user profile?
I have a product variant that a user can choose from. It looks like this:
<select name="purchasableId" class="form-control">
{% for purchasable in product.variants %}
<option {% ...
2
votes
1
answer
409
views
Custom Labels for Address Fields Craft Commerce
I need to be able to assign and output my own custom labels for the fields that are in the shipping/billing addresses during checkout in Craft Commerce.
I've already done so on the form like so:
{% ...
0
votes
1
answer
390
views
Test for specific or multiple product variants
I'm trying to test if a product has multiple variants AND/OR test for specific product variants.
{% if product.variants|length > 1 %}
That does not seem to work, even if it is a non-variant ...
1
vote
1
answer
801
views
How can I get the current user who purchased a product from the onOrderComplete event?
I have a plugin that is listening to the onOrderComplete event within commerce. I am able to get the email address like this:
craft()->on('commerce_orders.onOrderComplete', function (Event $event) ...
1
vote
0
answers
233
views
Dynamics Nav 2015 (Navision) integration
I'm looking for advise and a strategy for integrating Dynamics Nav 2015 with Craft Commerce. I realise this is a broad question and a hard one, certainly since Craft Commerce has only been recently ...
3
votes
1
answer
306
views
Edit order from backend
Is it possible to add products and discounts to an order from backend?
From what I see it's only possible to edit the orders custom fields.
1
vote
2
answers
1k
views
How do I select a specific product variant by element/field/entry?
Excuse my new-ness, but I'm having an issue with product variants.
Scenario
I have a product with multiple variants (up to 30 in fact). Based on the URL, I want to choose a specific variant so that ...
1
vote
1
answer
398
views
Can't duplicate a product in Craft Commerce?
I can't seem to find a way to duplicate a product in Craft Commerce.
I've duplicated articles before, with the "save as new" feature... But can't find anything similar for products.
Does such a ...
0
votes
1
answer
256
views
Craft 2.5 plugin sub navigation icons
I notice that you can add icons for your sub navigation. However looking at the template for the subnav loop there isn't any markup to render that icon. Anyone know if this is coming in the future or ...
5
votes
1
answer
1k
views
Managing a large number of Variants in Craft Commerce
I'm currently building a site for a client who's products vary in price depending on the width / height selected. Essentially what this means is each product has around 70 possible variations, each ...
1
vote
1
answer
209
views
Craft Commerce - No closure name "Customer"
I am taking my first real stab at working with the commerce beta. This plugin is pretty fantastic btw - awesome job guys. I can't comprehend all of the tiny details that went into this considering all ...