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 » Simple PayPal Shopping Cart

Shortcode Shows Up in Post

(6 posts) (4 voices)
  • Started 2 years ago by eddleman
  • Latest reply from amin007
  • Possible Solutions (Related Topics):
    1. eStore & PayPal - occasionally receipt shows incorrect postage amount charged
    2. Lightbox Ultimate - Poster and Autoplay option for the HTML5 video shortcode
    3. Only load estore CSS/JS files when detecting shortcodes in posts, possible?
    4. eStore Manual Checkout - shortcode for order summary
    5. Fatal Error when I click shortcode icon

Tags:

  • shortcode
  1. eddleman
    Member

    When I post the test code: [wp_cart:Test Product:price:15.00:end]
    in a post it just shows it as plain text when I view it online.
    I've tried it several ways but it still just shows up as
    plain text.

    I did search the whole forum for an answer. Sorry for such a noob question.

    Could you give me some insight in to what could be wrong.
    I'm on wp 2.9. Using the latest version.

    Do <Div> tags and css classes in my template mess it up?

    Posted 2 years ago #
  2. dominick41
    Member

    I am having the same problem

    Posted 2 years ago #
  3. amin007
    Key Master

    If the "<div>" tags and css classes in your template are not used properly then it can mess things up but I don't think this is the issue here.

    Can you post a link to your page?

    Also, a good test is to disable all the plugins except the well known ones (e.g Akisment, All in all SEO etc) and switch your theme to the default wordpress theme then see what happens. If the button appears then you can start to activate the plugins back and see which one causes the problem. There are too many plugins and themes out there that are not coded according to WordPress coding standards and it causes more problem most of the time.

    Posted 2 years ago #
  4. eddleman
    Member


    Posted 2 years ago #
  5. eddleman
    Member

    Well the deactivation of the plugins worked. I think it may have been a plugin that was associated with placing a google map in a post... Does that make sense?

    Posted 2 years ago #
  6. dycraw
    Member

    Hello,

    First of all thanks for a great little plugin it is perfect for my needs. I have installed it and things are working fine so far. However I am having one issue. One I place the wp_cart tags directly in a post everything works fine, however when I place the code in to a template as follows this link is the end result http://dylanscott.net/colours4aura/?p=65

    (<?php
    /*
    Template Name Posts: Colour Template
    */
    ?>
    <?php get_header(); ?>
    <?php get_sidebar(); ?>

    <div id="content">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class="post">
    <h2><?php the_title(); ?></h2>

    <div class="contenttext">
    <?php the_content('<p>Read more »</p>'); ?>
    </div>

    <p class="contenttext">
    Available Samples:

    16" x 16" handpainted artbord sample - $10.00 [wp_cart:DSC001.5 16x16:price:10.00:end]

    250ml matte finish sample pot - $12.00 [wp_cart:DSC001.5 250ml :price:12.00:end]
    </p>

    <p class="styleShipping">Please note their is a flat rate shipping charge of $15 for up to 6 items to mainland North America. Please contact us directly regarding shipping costs to additional destinations, on larger orders or for express services.
    </p>

    <?php link_pages('<p>Pages: ', '</p>', 'number'); ?>
    <p class="postinfo">
    Posted: <?php the_time('F jS, Y') ?> under <?php the_category(', ') ?>.
    <?php the_tags('Tags: ', ', ',''); ?><?php edit_post_link('[edit]',' | ',''); ?></p>'

    <div class="navigation">
    <p><span class="prevlink"><?php previous_post_link('« %link','Previous post',''); ?></span>
    <span class="nextlink"><?php next_post_link('%link »','Next post',''); ?></span></p>
    </div>

    <?php comments_template(); ?>

    <?php endwhile; else: ?>
    <p>No matching entries found.</p>
    <?php endif; ?>
    </div>
    </div>

    <?php get_footer(); ?>
    <style type="text/css">
    )

    Any suggestion you have would be a great help. I'm a hack when it comes to these things so hopefully it won't be to complicated of a work around.

    Posted 2 years ago #
  7. amin007
    Key Master

    Shortcodes only work on posts and pages... you need to use the corresponding PHP function call when using it from the template files. The documentation site has instructions on this.

    Posted 2 years 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