• Hi,
    I would like to be able to show (or hide) wrappings based on a time line. There is no need to show a xmas, mother days, valentines, etc. gift wraps when it is not the time of the year for that.
    I am using the plugin “WPC Product Timer for WooCommerce” to show, hide, etc. products based on a certain time line. However this does not work with this plugin, because it is always showing all Gift Wrap products whatever product timer I use. Is there a solution for this?
    Kind Regards, Ronald

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Ronaar

    (@ronaar)

    The easiest way would be to hide Gift Wraps in the Gift Wrap popup screen, as long as a product is hidden. Can that be done by css maybe?
    Kind Regards, Ronald

    Hi @ronaar,

    Thank you for your note. You have pointed out a fault with the Gift Wrapper plugin where products out of stock and/or otherwise not purchasable were still showed in gift wrap lists. However, you’ve also highlighted a discrepancy between how this plugin and how the Product Timer plugin function.

    The Product Timer uses hooks to superficially change whether products are “in stock” or “purchasable” or “featured” or whatnot. It does not alter anything in the WP (product) database. The Gift Wrapper plugin queries the database for product information; the hooks Product Timer uses are not factored in.

    In order to get that to work together, you’ll probably need to hire a developer if you’re not familiar with PHP and WordPress hook use. Use some new hooks I just added to the plugin version 4.4.6 (e.g. ‘wcgwp_wrap_posts’ or ‘wcgwp_continue_gift_wrap_action’) to look at whether the wrap products “is_in_stock()” according to Product Timer’s filter (and not go by what the database says). Then maybe not show certain gift wrap options or even not show the “add gift wrap” prompt at all. It’s very possible to have them play nice together, but they won’t do it out-of-the-box, and it won’t be functionality I’ll be adding to core anytime soon due to low demand, high specificity, family responsibilities, etc. etc. BUT – thank you again for cluing me in to this.

    Thread Starter Ronaar

    (@ronaar)

    Hi Littlepackage,

    Thank you for explaining. All clear.

    Saludos, Ronald

    Thread Starter Ronaar

    (@ronaar)

    Hi,

    Just one question… If I buy a license will I be able to change the simple link (on single product pages, Cart and Checkout page) into a button?

    Kind Regards, Ronald

    Hi @ronaar

    I don’t see why you wouldn’t be able to do that with the free version, using CSS or the included templating system. The trigger links are CSS-tagged, and the trigger link for modals is included inside an overrideable template. You can learn more about the templating system here: https://web.little-package.com/woocommerce-gift-wrapper-plus/documentation/#templates. You can get it just the way you want it. If this project flies over your head, I recommend you hire a WordPress developer to help. Many are looking for work over at jobs.wordpress.net and codeable.io!

    Thread Starter Ronaar

    (@ronaar)

    Hi,
    I would like to know if I can use a link to open the Gift Wrapper modul/popup, and if yes, with which link that is. If you can give me that link I can easily open the modul/popup with a button instead of using the standard text-link.
    Can you please help me with this one?
    Thanks, Ronald

    There is one link in the WooCommerce Gift Wrapper plugin with the content “Add gift wrap?” If you are using version 4.4 or newer, you will find that link in the templates/wcgwp/modal.php and templates/wcgwp/giftwrap-list.php files. You can either use CSS to alter the links to appear as buttons (simplest solution), or you can go further and alter the template files. In my previous post I gave you a link which referred you to more information about how to use templates. In your case, simple CSS should sort this out.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Date based Gift Wraps’ is closed to new replies.