Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum

php function for shopping cart display in child theme template

(3 posts) (2 voices)
  • Started 10 months ago by mikie
  • Latest reply from mikie
  • Possible Solutions (Related Topics):
    1. Shopping Cart Plugin Breaking Wordpress theme in Chrome?
    2. Whats the widget php function to display the compact version of the cart
    3. Displaying Shopping Cart
    4. Display text link to shopping cart only when items are in cart
    5. Moving things around in shopping cart template

Tags:

  • php function
  • shopping cart
  • shortcode
  • widget
  1. mikie
    Member

    Hi, I'm about to go to WPQuestions for this but I want to be sure I give them all the info they need. I want a custom page template for WPFolio that will always display the shopping cart as a widget, or where a widget would be, only on my store related pages. WPFolio does not display widgets on pages, only on posts. this means my template will have to have its own sidebar or some container that expands like a widget for my shopping cart. I'm thinking they can just provide a custom sidebar for those pages and I can add the shopping cart in a text widget (I prefer that to the shopping cart widget of yours, the shortcode cart is prettier and always there when empty). And I want to void any complex widget logic scenario, not even sure conditionals exist for what I need. Finally, getting to my question! Is there some sort of php function code the answerer will need from you (through me) to help do this? I found this code on your forum <?php echo print_wp_digi_cart(); ?> but I want to be sure that code will make the cart function and look as it does with the shortcode [wp_eStore_cart] (my favorite) before I send it along. Thanks.

    Posted 10 months ago #
  2. amin007
    Key Master

    The following line should help:

    <?php echo wp_digi_cart_always_show(); ?>

    When you place the above line anywhere on your theme's template file it will show the shopping cart just as it does for the [wp_eStore_cart] shortcode.

    Posted 10 months ago #
  3. mikie
    Member

    Wonderful, thank you.

    Posted 10 months ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin