agoradesign / commerce_product_set Goto Github PK
View Code? Open in Web Editor NEWExtends Drupal Commerce with a product set (bundle) functionality.
Extends Drupal Commerce with a product set (bundle) functionality.
I have a product set I created. It references some product variations, everything works fine. Today I added a new product, with some variations. When editing the existing product set to attempt to reference the newly create product/variations the values are not available in the autocomplete.
I tried switching widget to a select to see what shows and they are not there. I also created a new product set type and then went to create the product set and that one has the options for the new product/variations. Weird issue and I don't understand why this is happening.
This is a great module.
I am having an issue with using this along with commerce_stock. It seems that when I attempt to load the Add to Cart form on a Product Set page I get:
The website encountered an unexpected error. Please try again later.
Error: Call to a member function getDefaultVariation() on null in commerce_stock_enforcement_form_alter() (line 39 of modules/contrib/commerce_stock/modules/enforcement/commerce_stock_enforcement.module).
Commerce_stock does do a form_alter there but the thing is it is looking for a property 'product' and it doesn't exist in the $form_state when this module is enabled.
beside common changes, we need to do at least these things:
I did not know where to ask this question. I saw https://gist.github.com/agoradesign/d70763c8ba4447b312d04093183d153f
I have a custom product template commerce-product--teaser.html.twig
and it has this code to show add to cart and wishlist buttons
<div class="pi-links">
<a href="javascript: void(0);" class="add-card" data-pid="{{ product_entity.id ~ temp_uuid }}"><i class="flaticon-bag"></i><span>ADD TO CART</span></a>
<a href="javascript: void(0);" class="wishlist-btn"><i class="flaticon-heart"></i></a>
</div>
I am confused what should I do with this code?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.