WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Variable Product SKU Display (50 posts)

  1. ryanbfly
    Member
    Posted 1 year ago #

    Well, now they are saying it's a problem with my Yootheme theme.

  2. ryanbfly
    Member
    Posted 1 year ago #

    Well, here's the fix for those of you having this problem with Warp 6 Yootheme Themes, namely Cloud. Keep in mind this is probably considered just a temporary fix, I'm not too keen on doctoring themes...

    The theme doesn't seem to be calling on the following scripts:
    add-to-cart-variation.js, add-to-cart-variation.min.js
    so I added:

    <script type='text/javascript' src='http://yoursite.com/yourdirectory/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js?ver=1.6.6'></script>
    <script type='text/javascript' src='http://yoursite.com/yourdirectory/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.min.js?ver=1.6.6'></script>

    right before the closing body tag on template.php in the
    wp-content/themes/yoo_cloud_wp/layouts directory. Next I fixed these two javascripts with lorsa's script. That did it...

  3. Uwe666
    Member
    Posted 1 year ago #

    hello, I've tried your suggestions, but it's still not working on my website.

    my setup:
    WORDPRESS: 3.5
    WOOCOMMERCE: 1.6.6
    THEME: Function (Woothemes)

    and I've changed the two files:
    add-to-cart-variation.min.js (lorsabyan code)
    add-to-cart-variation.js (samueljeden code)

    what else can I do?

  4. samueljeden
    Member
    Posted 1 year ago #

    Hi Uwe666, please put lorsabyan's code in both files. this will fix the issue until the next woocommerce release which also updates attributes like weight / dimensions when variations are selected :)

  5. Uwe666
    Member
    Posted 1 year ago #

    hi samueljeden! I've done it like you said. but still not working (firefox and chrome browser)!

  6. samueljeden
    Member
    Posted 1 year ago #

    Did you replace them in the woocommerce plugin directory?
    have you cleared your browser caches?
    have you made sure you have sku's set for the parent and the variations? and that they are all setup correctly.

    link me to your website and ill see if i can see the issue.

    :)

  7. Uwe666
    Member
    Posted 1 year ago #

    >> Did you replace them in the woocommerce plugin directory?

    yes! here:
    /wordpress/wp-content/plugins/woocommerce/assets/js/frontend

    >> have you cleared your browser caches?

    yes!

    >> have you made sure you have sku's set for the parent and the variations? and that they are all setup correctly.

    i can only setpup prices to variations. and in the frontend i see every time the lowest price for all variations!

    >> link me to your website and ill see if i can see the issue.

    ok! here is the testpage:
    http://www.dominanztravel.com
    USER: guest
    PASS: welcome

  8. samueljeden
    Member
    Posted 1 year ago #

    There is nothing wrong with the code loading,

    >>i can only setpup prices to variations. and in the frontend i see every time the lowest price for all variations!

    this says to me that your variations are setup incorrectly, it sounds like you have added an extra variation without selecting what attribute it is assigned too.

    if you can post a screenshot of the item with all the variations expanded so i can see them, ill be able to tell you which one is wrong.

  9. Uwe666
    Member
    Posted 1 year ago #

    can I send you the WP access via private message?

  10. samueljeden
    Member
    Posted 1 year ago #

    i dont think you can do private messages here, you can certainly email me though

    sam.eden@sky.com

  11. Uwe666
    Member
    Posted 1 year ago #

    ok, on it's way via email ... ;)

  12. samueljeden
    Member
    Posted 1 year ago #

    As i said previously, your issue was with the variation setup.

    i fixed this and i have emailed a reply to you :)

  13. davidwieland
    Member
    Posted 1 year ago #

    Same boat as all the other guys: woocommerce + variations + yootheme = not playing nice.

    I've followed the steps of copypasting lorsabyan's code into the 2 JS files, and added a link to their location in the template.php before the closing body tag, but still to no avail.

    Seems though I'm pretty close to the solution. I've set SKU for the main product and the price for all variations. What am I doing wrong?

  14. samueljeden
    Member
    Posted 1 year ago #

    Hello David,

    I believe i have just emailed you back.

    I've never actually looked into a permanent fix for this with YooTheme's as im not part of there club / purchased any themes.

    If someone wants me to look into this properly so i can try and figure out why i will need a fresh site the yootheme installed so i can look into it and admin access to the editors.

    From what i can see david your theme is not calling the variation js file, if you respond to my email i can look further.

    Thanks
    Samuel

  15. OatmealBath
    Member
    Posted 1 year ago #

    Hey Guys,

    I've tried lorsabyan's code in both files and all variations are disabled after the first variation is selected.

    For Example: I choose

    Size: 16" x 12"

    and then every option for

    Color:

    is greyed out. I believe I have all of the product variation options set up correctly, as the store is functioning and orders go through. Could I get an unminified version of the code to try some debugging?

    The website is http://www.PrestigeOfficeAccessories.com and I have the old code live at the moment.

  16. zackskeeter
    Member
    Posted 1 year ago #

    Can anyone Fix the jquery for woocommerce v.2??

    I am getting a varation issue where i cannot add to cart due to a jquery issue.

    TypeError: t.product_variations is undefined

    h || (h = t.product_variations[c]);

    The fix worked before the update, Please help. Woocommerce support has been little use

  17. jzanaught
    Member
    Posted 1 year ago #

    I just gotta say - thank you lorsabyan & samueljeden. you 2 saved my bacon after HOURS of wrestling w/ this code.

  18. imacg
    Member
    Posted 1 year ago #

    Guys,

    I am not seeing product variation skus on a Woocommerce 2.0.12 install, I tried the earlier version code fix posted, but that just killed the product option drop-down, so is there a fix to make product variation skus show up on product display and also pass through into cart/order details for this latest version..?

    However, I must say that this seems a bit odd to have to be messing with code to fix..? surely it's a basic requirement for Woocommerce to have this working..?

    thanks for advice..

  19. imacg
    Member
    Posted 1 year ago #

    interesting - possibly..:-) I changed my theme to twentytwelve and the product variation skus work just fine, so I assume it is a theme issue... so what needs done..?

    Even with twentytwelve I am not seeing the sku passed through to the cart though...which is something that is required for order processing..the colour variaition is coming through but not the sku.

  20. zaheeratd
    Member
    Posted 1 year ago #

    Hi All Members,
    I am stuck in a problem any help will be highly appreciated, I am working on a site similar to http://www.buildasign.com, I have a designer by which I can make banners and by this designer I can store custom designed products to the database.

    Now the problem is that I want to integrate this designer with the woo commerce shopping cart, I want that when a user design the banner with my designer that design can be added to my shopping cart, I am confused about where to store the newly designed banner in my database so that it can be used later by me.

    Any reference link or help can be highly appreciated.

    Thanks in Advance
    Zaheer

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic