Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)
  • You will want to modify the following line of css in ‘/wp-content/plugins/responsive-lightbox/assets/swipebox/css/swipebox.min.css’

    
    #swipebox-overlay {
         background:transparent;
         background-image: url(your_img_location.png);
    }
    

    Added the background-image css selector and changed the value of the original background selector to “transparent”

    You can also add this line to your theme’s css file to avoid it being overwritten when you update the Responsive Lightox plugin.

    Thread Starter merchantweb

    (@merchantweb)

    Posted an update to this below. Any suggestions?

    Thread Starter merchantweb

    (@merchantweb)

    Hi Beka,

    The Bulk edit does not work. The quick edit works when I update products individually. All I need to do is click quick edit and save (no changes needed). The variable products then become visible when sorting by stock status, however, when sorting by stock qty they disappear again. Do you have any more ideas on what is causing the data to not go through and how I can completely update a product or create one for that matter with wp all import that includes the necessary information to display on the front end when sorting by quantity for variations and simple products alike?

    Thanks so much for any help everyone!

    -MerchantWeb

    Plugin Author merchantweb

    (@merchantweb)

    Hi pixelrage,

    Thanks so much for your review. The original version of the plugin was set to 3 but the second version, which is the current one, has the option to change the number of post in the widget. The option for number of posts is within the WordPress Theme Customizer panel, along with other options.

    Let me know of any other updates you would like to see. In the next version, I will be moving the post count setting to the actual widget settings; so that if you decide to have 2 widgets on a page, you an control the number individually. Some clean theme options coming soon as well ??

    Hope this helps!

    merchantweb

    • This reply was modified 8 years, 1 month ago by merchantweb.
    Thread Starter merchantweb

    (@merchantweb)

    That stock meta for the parent product needs to be set, and the import most likely is not setting this meta. Since it’s not added, these products are not found when we sort by stock.

    You’ll either need to set the stock properly when imported, or bulk edit / quick edit your products to set it.

    Thanks so much, Beka! I will try that. ??

    • This reply was modified 8 years, 2 months ago by merchantweb.
    Thread Starter merchantweb

    (@merchantweb)

    Hi designbygalvan,

    I apologize for the super late reply and hope you were able to find the answer before now but for anyone still curious…

    Modify the functions.php file in your theme or child theme folder.

    I’m working on this again because there have been updates to WooCommerce and it changes the ability for this to work as I intended. Now you cannot purchase a product that is set to outofstock and allow backorder.

    Hoping to figure out the dependencies needed for my products to show up in sorting by stock qty as Beka has suggested would be better. I’ll be experimenting with WP All Import to include all necessary data on product creation. When I solve it I will post back with all data fields needed.

    Thanks for the input Beka and designbygalvan!

    I am running into some issues related to the way WooCommerce is dealing with stock status and backorders since some of the revisions in this areas over the last 6 months. Here’s why:

    I used the stock status of instock and outofstock to show a user if a product is available in store. The outofstock class on products within the front end product list allowed to add an icon using css that showed the item was in stock (available in store) or out of stock (not available in store but available on backorder)

    Instead of backorder I changed the wording Ships in 1 day on the product detail page because we can drop ship all our products when we don’t have them in stock.

    Because of the new changes, I have lost the ability to sort my product by availability. I had to use _stock_status_as opposed to _stock as a meta key because using _stock for some reason doesn’t include variable products in the product list front end. Even when using _v_stock Some of the products in our catalog were hidden and I cannot figure out a pattern as to why in that case with _v_stock. It’s been difficult to deduce so that I can create a new workaround that fits with the new direction of WooCommerce as opposed to reverting to the old ways. Do you have any ideas on this Mike?

    Basically I had two good reasons for it being the old way that have been ousted by the new.

    1. Allows for a slick way to show products available in store with an icon in product lists
    2. Allows for sorting by ‘available’ products that includes simple and variable products, which I don’t believe there is any other solution to now.

    Thanks ahead for any insight on this subject!

    I too have been trying to figure out how to enter special characters into the custom permalink field but have not found the answer yet. I will post back if I discover anything and it would be great if anyone out there has some info to share on this. I am for example trying to create a permalink with a ? and & characters but it converts my input when viewing the page.

    Thread Starter merchantweb

    (@merchantweb)

    It looks like I’m going to be using this snippet until I can figure out why order by _stock performs that way… Stock status seems to be working better for me using the below code:

    add_filter( 'woocommerce_get_catalog_ordering_args', 'custom_woocommerce_get_catalog_ordering_args' );
    
    function custom_woocommerce_get_catalog_ordering_args( $args ) {
      $orderby_value = isset( $_GET['orderby'] ) ? woocommerce_clean( $_GET['orderby'] ) : apply_filters( 'woocommerce_default_catalog_orderby', get_option( 'woocommerce_default_catalog_orderby' ) );
    
    	if ( 'stock' == $orderby_value ) {
    		$args['orderby'] = 'meta_value';
    		$args['order'] = 'asc';
    		$args['meta_key'] = '_stock_status';
    	}
    
    	return $args;
    }
    
    add_filter( 'woocommerce_default_catalog_orderby_options', 'custom_woocommerce_catalog_orderby' );
    add_filter( 'woocommerce_catalog_orderby', 'custom_woocommerce_catalog_orderby' );
    
    function custom_woocommerce_catalog_orderby( $sortby ) {
    	$sortby['stock'] = 'Stock Status';
    	return $sortby;
    }

    I will have to research the differences that led to my issues. I’m guessing this could be a common issue for others who are setup like me with 1000s of single products and variations.

    Could the above be integrated to your plugin? Maybe with this code as working code you can tell me what the difference is between it and yours or why it works for my case?

    Thread Starter merchantweb

    (@merchantweb)

    Ok, so after some more experimenting I decided to go into edit this product. From product data> inventory I confirmed that ‘Enable stock management at product level’ is checked. Then I notice there is a stock amount set to 0 on this same tab. This, in addition to the stock amounts set for each variation. *Note: I’m using WP All Import to import products and inventory. I wonder if this is causing something to not register between your plugin and my products?

    Anyway, after removing the stock of 0 on the main inventory tab so the field looks blank I updated the product and went to the category with sort by availability enabled and the product is now showing. Though another problem has shown its face and I don’t understand how I can kick all my products into gear automatically.

    Take a look at the list of products that shows when sort by availability is selected. The other products shown by availability are single products with no stock. Any ides on what is going on here?

    Thanks!

    Thank you paulsutton for linking to the solution that doesn’t just fix it for myself; but my clients as well without telling them how to edit their Chrome settings. Chrome is really buggin me with the way they are creating a new compatibility paradigm to deal with- as if there aren’t enough already #GoogleChrome

    Still using open sans… ?? It’s a great font for web projects. Lato is nice as well if you are looking for an alternate clean sans-serif typeface.

    Same thing happened to me today except I’m using open sans as my website font in addition to it being the wordpress admin font. Site was fine on 9-8 and now, 9-9 it is not. This looks to be pc specific based on the version of chrome but I don’t want my site to change looks for some users every time a Chrome update comes out. I’m guessing Chrome updated itself when I restarted it last night. I had like 30 tabs open and it may have crashed and installed an update… I will probably avoid open sans from now on. Good job Chrome.

    Thread Starter merchantweb

    (@merchantweb)

    It worked! I really appreciate it.

    Thread Starter merchantweb

    (@merchantweb)

    Awesome!! I’m sure this will help. I’ve been so busy I’m just now getting to it… will post my result when I get it working. Gonna add some nice styling to the slider. Just trying not to hijack people’s threads in meantime haha ??

Viewing 15 replies - 1 through 15 (of 24 total)