WordPress.org

Ready to get started?Download WordPress

Forums

Cart66 Lite :: WordPress Ecommerce
Insert product into custom post type (9 posts)

  1. artparks
    Member
    Posted 1 year ago #

    I've created a custom post type "products" that I want to use to control the product posts so as to keep them separate from the blog. However when I go to add them via the lightbox popup box, the lightbox draws but is empty. If I try and add them to a normal "post" type then everything works fine, so the plugin seems to be working fine.

    Are custom types not supported in this way?

    http://wordpress.org/extend/plugins/cart66-lite/

  2. jin410
    Member
    Posted 1 year ago #

    Same problem here.
    Running WordPress 3.3.2 with cart66lite Version 1.4.9 on both a local and remote install.

    I know this feature does work for cart66 paid version, I've used it on a clients site but the lite version does not seem to be working.

  3. Greenweb
    Member
    Posted 1 year ago #

    The Pro Version has the same issue. Cart66 needs to address this.

  4. Greenweb
    Member
    Posted 1 year ago #

    Okay I have a fix for this issue. Update: Pro version only.

    Cart66 changed the way the pop up box worked to "give" developers more control over when it loads the js that is need to display the pop up boxes content.
    What I find clumsy is that the button that calls the pop up is still there.
    What I find clumsy and irritating is that they felt that they need to do this in the first place.

    Why not add a hook that lets you turn off the pop up if thats what you want.

    This is how you use the new cart66_add_popup_screens filter :

    // using cart66 filter: cart66_add_popup_screens
    // first we need to add the filter
    // because cart66 only applies the filter, it does not add it.
    add_filter('cart66_add_popup_screens','my_function');
    function my_function(){
      $array = array('products','plugins'); // this is a list of the custom post types
       return $array;
    }
  5. artparks
    Member
    Posted 1 year ago #

    Hero - thanks a lot.

  6. Greenweb
    Member
    Posted 1 year ago #

    @ artparks Sorry if I gave you false hope but after looking at the cart66-lite code this fix will only work for the latest pro version

  7. nickm221
    Member
    Posted 1 year ago #

    I'm not sure if you are having the same problem as I am, but if not maybe you can help. When I insert the cart66 "shortcode" for a picture of an item for sale the html gets added like normal but when I either hit the update button or switch to html view the link disappears

  8. gep7516
    Member
    Posted 1 year ago #

    For cart66-lite in the file Cart66Dialog.php the function add_shortcode_popup has an if statement that checks the variable current_screen->id, add in your custom post type here.

  9. reality66
    Member
    Plugin Author

    Posted 1 year ago #

    Just wanted to let everyone know we've got a new, public knowledge base available including an answer to this question about custom post types.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic