• molarum

    (@molarum)


    Hell everybody,

    i’m posting my first post so i’m not quite sure if this is the correct sub. My problem i want to solve is: I want to create a plugin for shopping stuff. All of you know i’m going to need a checkout cart. My main problem is how to achive a link to cart in my shopping cart widget, which uses the default page layout of the current theme, and displays the cart as a page in the theme. I thought about building a shortcode and parsing this shortcode as a string in the template but i’m not sure how to achieve this. Any ideas on this topic?

    I hope you could help me 🙂

    Greetings from germany

Viewing 4 replies - 1 through 4 (of 4 total)
  • RossMitchell

    (@rossmitchell)

    This forum “Hacks” is one place to ask your question. A better section would be “HowTo and Troubleshooting”.
    Rather than create your own plugin, I suggest that you look at the existing plugins, there are many of them, test some on a trial site, look at their support forums, you will probably find some which have support in German.
    Among other plugins I suggest you look at woocommerce, it is very widely used, consider others as well.

    Greetings from Australia

    nazzilla

    (@nazzilla)

    Like Ross says, there are a lot of chart plugin in wp-plugin repository.
    But if you build your by yourself, you can start to check
    a good tutorial to make a sidebar widget
    http://www.wpbeginner.com/wp-tutorials/how-to-create-a-custom-wordpress-widget/

    and how to make a shortcode in wp
    https://codex.ww.wp.xz.cn/Shortcode_API

    https://codex.ww.wp.xz.cn/Shortcode_API#Self-Closing

    Thread Starter molarum

    (@molarum)

    i know how to create a widget and shortcodes. perhaps i was kind of unclear in my case. I need a link from my cart widget to an extended checkout cart (where the user can check payment etc… ) therefore i want to fake a page in the current theme. I plan to create a shortcode for the content and kind of parse this shortcode as a string to the page….

    if i’m still too unclear pls forgive me^^

    greetings

    tormorten

    (@tormorten)

    Hi,

    Is this what you’re looking for?

    https://gist.github.com/cubehouse/3839159

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Faking a page’ is closed to new replies.