Home Forums WC Vendors Pro Support Variable product issue in front dashboard

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #65187
    Citydrive
    Participant

    Hello,
    I have an issue in the products dashboard form for the variable products.
    When i go to the variations tab, the select box are empty. (they are filled in the wordpress admin). (screenshot_1)
    I found a solution for this, I modified this file : \wc-vendors-pro\public\forms\partials\wcvendors-pro-product-variation
    at line 47 i replaced :

    if ( array_key_exists( 'values', $attribute ) ){ 
    
    	foreach ( $attribute['values'] as $key => $value ) {
    		echo '<option ' . selected( $variation_selected_value, $key, false ) . ' value="' . esc_attr( $key ) . '">' . esc_html( $value ) . '</option>';
    	}
    
    }

    with :

    if ( array_key_exists( 'value', $attribute ) ){
      $options = wc_get_text_attributes( $attribute['value'] );
      foreach ($options as $key => $value ) {
         if($value == $variation_selected_value){
            $selected = "selected";
         }
         else{
            $selected = "";
         }
         echo '<option ' . $selected . ' value="' . esc_attr( $key ) . '">' . esc_html( $value ) .     '</option>';
      }
    }
    

    With this modification the select box are working but when i save the form the select field are broken (the select box are not loaded). (screenshot_2)
    Do you know this issue ?
    Can you help me find a solution to this problem ?

    Your help would be really appreciated.
    Thank you.

    #65224
    Anna
    Member

    Hello,
    1. Try updating WooCommerce:

    WooCommerce: par WooThemes – 2.6.13

    2. Make sure the templates of ours that you are overriding in your theme are up-to-date (looks like they are, but we did update the product-edit.php template for v1.4.0, so it would not hurt to double-check).

    3. If updating WooCommerce does not fix this issue, then switch to the Storefront theme and test to see if the fields are working properly.

    #65297
    Citydrive
    Participant

    hello,
    Thanks for your reply.
    I have tested your three point and I have the same issues.
    Have you any other idea ?
    Thanks for your times.

    #65360
    Anna
    Member

    @leo-chiron
    Hello,
    I just checked your site- and WooCommerce is still at version 2.6.13
    Could you please update and also make sure you allow WooCommerce to update the database for the new version?
    Backup your site before you do this

    Then test and see if the issue persists.

    #65385
    Citydrive
    Participant

    Hi,
    I have made the update but in this url : https://dev.citydrive.fr/
    Sorry, I should tel you that before.
    You can connect to the admin with the same ID.
    Thanks.

    #65449
    Anna
    Member

    @leo-chiron
    I was not bale to login at the new domain using the previous credentials.
    Did you update WooCommerce?

    #65496
    Citydrive
    Participant

    Hi,
    You can connect here : https://dev.citydrive.fr/ctd-connect
    With this ID : wc-vendor mp : 8K5x%%e@P0qaM3nwy2KS55J
    All the pluggin are up to date.
    WC vendors : Version 1.9.11
    WC Vendors Pro : Version 1.4.3
    WooCommerce : Version 3.0.7
    All the other pluggin are disable.

    #66015
    Citydrive
    Participant

    Hi,

    Have you had time to test the dev.citydrive.fr version ?

    Thank you.

    #66117
    Anna
    Member

    @leo-chiron
    No I cannot login with those credentials either.

    For the variations.. if you click on the arrow to the right of the attribute/variation title, it does not show the additional fields?
    Please see these screenshots.

    #1: Before clicking the arrow
    https://www.wcvendors.com/wp-content/uploads/2017/05/variations-1.jpg

    #2 After clicking the arrow, the fields are seen
    https://www.wcvendors.com/wp-content/uploads/2017/05/variations-2.jpg

    #66201
    Anna
    Member

    Hello,
    Ok- thank you for the explanation.
    I will login later today and so thorough testing. The credentials work this time. 🙂

    Please, though, in the meantime, will you remove the code / modification you put in the wc-vendors-pro\public\forms\partials\wcvendors-pro-product-variation

    This way I can test without that modification, with our code as is, please.

    Thank you- hopefully we can get this resolved now.

    #66228
    Citydrive
    Participant

    Hi,

    Thanks for your advice,

    Wc vendors and Wc vendors pro aren’t modifed on this version.

    Regards,

    #66722
    Citydrive
    Participant

    Hello Anna,

    Sorry to bother you again with our problem, but by any mean were you able to find the time to investigate our situation?

    Your help would be very much appreciated.

    Kind regards,

    #66845
    Anna
    Member

    @leo-chiron
    Hello,
    Yes- but I do not have a solution as of yet.
    I can make this occur on your site- but cannot replicate it on my development sites. I have also heard of a similar issue from a few other users– so I think this does occur on some other sites; however, without being able to replicate it I am not sure how to work with this and report the issue.
    I AM currently working on it to see if I can determine why it is occurring on your site, though.

    #67033
    Citydrive
    Participant

    @Anna
    Hi,
    Thank you for the time you’re spending on our issue. Don’t hesitate to ask us if you need anything that might help you replicate this issue on your development sites.
    We are currently trying to solve this issue too on an other test server but we are stuck and can’t seem to find the reason.
    Regards,

    #67138
    Anna
    Member

    @leo-chiron
    I am still stumped. I have tried every configuration I can think of to show the variable products as IN STOCK.. but every time I list one it is out of stock.

    Are you absolutely certain that you removed the code you added to \wc-vendors-pro\public\forms\partials\wcvendors-pro-product-variation.php ?

    #67339
    Citydrive
    Participant

    Hi Anna,

    We are absolutely sure that everything is intact and we didn’y modify anything on this server.
    We are thinking maybe it comes from the server configuration.
    Here is the link to our PHP information file : https://dev.citydrive.fr/info.php

    Could you provide us with the configuration on one of your working server ? With this information we’ll try to spot differences and see if any of them could imply this issue.

    Thanks again for your time.

    Regards,

    #67420
    Anna
    Member

    @leo-chiron
    Did you have another multi-vendor plugin installed before WC Vendors?
    I think so.. as I can see the “seller” role when I check wp admin > users and use the drop-down box for “change role…”

    There may still be some tables or info left int he database from the other multi-vendor plugin causing an issue.
    Could you check your database and delete/drop any tables from this previously installed multi-vendor plugin?

Viewing 17 posts - 1 through 17 (of 17 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.