The professional approach to add value to your customer offers.

Support


New : Whether it’s a plugin thats causing issues, a theme, or just needed help with styling your site or WPUSPSC…We can help! Live Support for all your WordPress or Prestashop needs! Support provided by Ultra Prod Staff.

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Product name = post title ?
julieconne-
ct
Newbie
Posts: 1
Permalink
Post Product name = post title ?
on: July 6, 2012, 17:15
Quote

Hello and thank you for this plugin really useful.
For my use an article becomes a product and wish to retrieve the title of my article for the product name automatically.
Do you have an idea for me to do?
In advance thank you for your help.

mcd
Administrator
Posts: 358
Permalink
Post Re: Product name = post title ?
on: July 7, 2012, 10:44
Quote

hello,

Thanks, you must modify your template to display the_title, or maybe there is a plugin who can transform it as shortcode.

Cheers,
Mike

herrkarlso-
n
Newbie
Posts: 1
Permalink
Post Re: Product name = post title ?
on: August 13, 2012, 12:10
Quote

How does one do that?
Isn't it impossible to do it with a shortcode because this app's button is added with a shortcode. (Can one have a shortcode in another short code?)

Thanks!

derrynairn
Newbie
Posts: 1
Permalink
Post Re: Product name = post title ?
on: April 11, 2013, 10:40
Quote

I'd like to achieve a similar thing and I believe this would be done in the template files.

My theme has a template file called post.php where I have each product listed. In that file I've included the code provided by this plugin:

<?php echo print_wp_cart_button_for_product('PRODUCT-NAME', PRODUCT-PRICE); ?>

But to automate this process, I want to include further Wordpress functions in place of those CAPITALISED parts.

As suggested above, I attempted to include <?php the_title(); ?> in place of PRODUCT-NAME. The button clicked through but the product name didn't appear.

My price is set up as a Custom Field called 'price' so I believe there should be a way to pass this through the code dynamically as well, possibly using get_post_meta (http://codex.wordpress.org/Function_Reference/get_post_meta).

What I've done so far has not worked but I know I'm on the right track. If anyone could give me another clue as to the correct terminology to use I would very much appreciate it.

All the best
Derry

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.032 seconds.

New : Whether it’s a plugin thats causing issues, a theme, or just needed help with styling your site or WPUSPSC…We can help! Live Support for all your WordPress or Prestashop needs! Support provided by Ultra Prod Staff.