Coder Social home page Coder Social logo

mc12345678 / attributes-grid Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 85 KB

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

PHP 99.17% CSS 0.83%

attributes-grid's People

Contributors

mc12345678 avatar

Watchers

 avatar

attributes-grid's Issues

Attribute Quantity Display depends on only product type display option

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.

Display attribute if only one option value and PAG displayed

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.

Need to Expand on Initial default quantity

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.

PAG add to cart bypassed when SBA not installed

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.