Jump to content


Welcome to the forum:

Welcome to the iThemes, PluginBuddy and WebDesign.com forum. We've created several tutorial video's to help you get you started with using the forum, please check them out!

Also take note of the forum guidelines.


Support hours:

Our moderators actively respond to forum support requests during normal business hours which are Monday-Friday, 8am - 5pm Central Standard Time, typically within one business day. Although some moderators choose to work during the weekends, we can not guarantee immediate attention to your requests. Thanks for understanding.

What is included with support:

Premium support includes theme/plugin issues such as: bugs encountered under normal operation, how to use basic features, basic WordPress help, and basic help with customization (meaning we point you to resources and will help in more depth as time allows). More information.

information

Super Widget Product Id Filter

filter extensibility super widget developer theme api

2 replies to this topic

#1 ironbound

ironbound

    Advanced Member

  • Members
  • Others: Toolkit
  • PipPipPip
  • 78 posts
  • LocationNew York

Posted 26 April 2014 - 09:12 PM

Hi Guys,

We really need a filter in this part of the super widget to allow us to change the product ID.

if ( ! empty( $GLOBALS['wp_query']->queried_object->ID ) && it_exchange_get_product( $GLOBALS['wp_query']->queried_object->ID ) )
$product_id = $GLOBALS['wp_query']->queried_object->ID;
else
$product_id = false;

We need this so that we can embed a super widget on a non-product page.

Either that or set product ID as a class property, so we can extend that class, and provide our own product ID in the constructor.


Or am I missing something entirely, and there already exists a way to embed a super widget?


Anyways, this would be immensely helpful as we need it soon for a client project.

If this wouldn't make it in soon, if you could let me know that as well, so I can start working on a crazy work around :)

Thanks!
Tim

#2 lewayotte

lewayotte

    iThemes Plugin Developer

  • Moderators
  • Others: Administrators
  • 45 posts

Posted 28 April 2014 - 06:48 AM

Hey Tim,

That makes sense. I've added this filter to core, on the else part of that conditional. I think that'll suit your needs.

$product_id = apply_filters( 'it_exchange_super_widget_empty_product_id', false );

Should be released with the next version we push out.

Let me know if you have any questions.

Lew

#3 ironbound

ironbound

    Advanced Member

  • Members
  • Others: Toolkit
  • PipPipPip
  • 78 posts
  • LocationNew York

Posted 28 April 2014 - 05:07 PM

Thanks so much Lew!



Reply to this Topic


ATTENTION
If this topic is marked RESOLVED or INFORMATION, or if you are NOT experiencing EXACTLY the same issue, please start a new topic to provide the details of your problem. If the solution provided doesn't work for you, you should start a new topic. If you feel this thread contains relevant information, you may include a link to it in your new topic. To ensure that we can process your support request efficiently, ALWAYS include a link to your site, and/or the page your request is related to. When posting your question or request on the forum, please be as concise and specific as possible. The shorter and more to the point you can make your request, the better.

For BackupBuddy related issues, be sure to include the status log from your most recent backup.

CLICK HERE to start a new topic in the Exchange ecommerce plugin forum.


  



Also tagged with one or more of these keywords: information, filter, extensibility, super widget, developer, theme api

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users