mc12345678 / attributes-grid Goto Github PK
View Code? Open in Web Editor NEWOffers attributes in an up to 2 option names to present product selection in a grid format. Support SBA as well as standard product.
License: Other
Offers attributes in an up to 2 option names to present product selection in a grid format. Support SBA as well as standard product.
License: Other
The display of quantities for each attribute in the grid is dependent completely on the product_type setting for display of quantities on the info page. This is too "restrictive" if there is another plugin that has some form of independent control such as SBA which has a separate setting just for display of quantities related to individual attributes.
When the store has been modified to allow the Product Attribute Grid (PAG) to be displayed for an option name that has only one option value assigned, the attribute name is missing from the display whether there is one or two option names assigned each having one option value.
It would appear that the reason behind this is that the program was originally written with the idea that if a single option value existed that the standard ZC behavior of displaying a radio option would be the route to go and therefore no further consideration was necessary for this scenario; however, if the radio option is disabled in the includes/modules/YOUR_TEMPLATE/attributes.php file, then PAG would not reflect the correct information. This is ever more important if the store has also disabled the quantity entry box on the product information page because the customer would only be able to add the product one at a time to the cart instead of multiple from the product information page or could/may be able to update the quantity in the cart.
Being able to display the information correctly in this situation is important.
It was discovered that if a product is setup to include a unit or minimum quantity that the default quantity displayed to the customer would be the greater of these two values. Meanwhile if the value is changed to 1, the followon operations work as expected and with respect to those values. Therefore a means was developed to support restriction of that information on the product information page (incorporated into the template files of ZC 1.5.6), but there may be a design consideration to alter the base product quantity to a value other than 1.
It is this "other" value that remains to be incorporated. This plugin has not previously added any specific user interface settings and may require such if the feature is needed/desired to have more control. Further, some sort of database table or table modification may need to be incorporated to allow some sort of per-product setting(s).
While this feature is discussed in this post, a specific need has not yet been identified by others. If this is a need for you, please make notification so that further progress can be made on the development.
During updates to Stock By Attributes, it was identified that plugins such as this required an update to be able to bypass the provided extra_cart_actions of PAG if the product was stocked by attributes. Unfortunately, the change made/incorporated only worked when SBA was installed and prevented processing product that are offered in grid format without Stock By Attributes software installed.
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.