1207 pointsLike some sort of WPMU DEV God"Exceptionally helpfulLifetime member
gina
Lifetime Member
—
28th February 2011 (1 year ago)
hello,
what would be a way that i can implement a view shopping cart/check out link or something when using the network theme that does not have a side bar? see link: here
1207 pointsLike some sort of WPMU DEV GodExceptionally helpfulLifetime member
Lifetime Member
—
28th February 2011 (1 year ago)
#
hello,
what would be a way that i can implement a view shopping cart/check out link or something when using the network theme that does not have a side bar? see link: here
FYI I added this: $content .= '<a class="mp_link_addcart" href="'.mp_checkout_step_url($checkout_step).'">Shopping Cart</a>';
to get a shopping cart link under the add to cart button. In marketpress.php create a new line under line 1162 and add that code. It'll give you a button formatted just like the add to cart button and directly under it.
Are you looking to get the shopping cart link added to the store pages?
If so, you'll have a much easier time since you'll just need to add the cart link shortcode to the store page created by MarketPress upon activation. As for the Products page, you should be able to enter the shortcodes in the page under Products > Store Settings > Messages (just scroll down the page to see the various pages).
The shortcodes are listed under Products > Store Settings > Help.
Responses (7)
Lead Developer — 28th February 2011 (1 year ago) #
You can use the shortcode or put the template function in your template files.
<?php mp_cart_link(); ?>Lifetime Member — 28th February 2011 (1 year ago) #
thank you! that'll work. :)
i got mp working with network theme (thanks mason) and it is a great fit!
just wish there was a way to have global products post to activity wall.. that would be awesome! *hint* haha!
thanks aaron! :)
Member — 28th February 2011 (1 year ago) #
FYI I added this:
$content .= '<a class="mp_link_addcart" href="'.mp_checkout_step_url($checkout_step).'">Shopping Cart</a>';to get a shopping cart link under the add to cart button. In marketpress.php create a new line under line 1162 and add that code. It'll give you a button formatted just like the add to cart button and directly under it.
Lifetime Member — 28th February 2011 (1 year ago) #
Wow mc! Perfect!! Thanks so much!
I'll try it when I get home.
Thanks again.
G
Lifetime Member — 1st March 2011 (1 year ago) #
hi mc.. that worked for single product pages.. any idea how to add it to /store/ and also /store/product/ ?
thanks in advance,
gina
WPMU DEV Fanatic — 4th March 2011 (1 year ago) #
Hi Gina,
Are you looking to get the shopping cart link added to the store pages?
If so, you'll have a much easier time since you'll just need to add the cart link shortcode to the store page created by MarketPress upon activation. As for the Products page, you should be able to enter the shortcodes in the page under Products > Store Settings > Messages (just scroll down the page to see the various pages).
The shortcodes are listed under Products > Store Settings > Help.
Cheers,
David
Lifetime Member — 4th March 2011 (1 year ago) #
hi david :)
ya i had finally figured that out after a good nites sleep. been running low on that!
but thanks so much!
gina
Become a member