WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » [Resolved] [Plugin: WooCommerce – excelling eCommerce] Add to Cart Variation JS Lack Scope

[Resolved] [Plugin: WooCommerce – excelling eCommerce] Add to Cart Variation JS Lack Scope

  • Plugin Author royho

    @royho

    Hello,

    I am trying to customize a theme using Woocommerce and I have encountered a couple of hurdles.

    1. It seems the design of woocommerce in terms of AJAX add to cart is only allow simple products to do so.

    2. add to cart variation js is only loaded when in single products page so that prevents developers from using that on other pages via ajax unless we dequeue and enqueue it again without the is_product() check.

    3. add to cart variation js seems to have no scope because the original design was to function only on a single products page but this is a serious limitation because what if I wanted to utilize this js in other pages as stated on item 2 and i have say a grid of products. Without scope, the jquery selects would select all products in the grid instead of a specific product with scope. For example, if I click on a variation dropdown, it would trigger changes to all selects in all products instead of only the one I clicked…Again because it is lacking scope.

    Would appreciated if anyone could give some insights to these hurdles.

    http://wordpress.org/extend/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: WooCommerce – excelling eCommerce] Add to Cart Variation JS Lack Scope’ is closed to new replies.
Skip to toolbar