Theme PHP Code for "Add order to cart" etc

Hi there,

Im currently working on a shop for a computer store, I want to style the products list like this:

http://piclair.com/zya3g

This is what ive made so far as a actually theme:

http://piclair.com/dpb0r

Link to my php file: http://pastebin.com/j95MTKzr

What i need to get on with this is pretty much to figure out how to add the "Add to cart" link to my image before getting any further.

If there is a list somewhere with all the tags i can use i would be very greatfull for a link.

  • DavidM
    • DEV MAN’s Mascot

    Hi Epenance,

    If I understand you correctly, you'd likely want to use mp_cart_link(), which provides a link to the cart. And going a step further, if you're looking to use that in your template file, you can use it as follows:

    <?php mp_cart_link() ?>

    That function is detailed in comments in /marketpress/marketpress-includes/template-functions.php, which contains lots of other very useful functions for customizing MarketPress with your theme.

    Would that be what you're looking for?

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.