- This topic has 2 replies, 2 voices, and was last updated 13 years, 7 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Remove line breaks on other buttons
Hi there,
I figured out how to remove line breaks from eStore button form when the Add to Cart button is used via the parameters, but I’m unsure of how to do it when there is a Buy Now, Download, or Subscribe button.
Here is my current button code:
if($button_type == 1)
{
// Add to Cart
$output .= get_button_code_for_element($ret_product, false);
}
else if ($button_type == 2)
{
// Buy Now
$output .= print_eStore_buy_now_button($id);
}
else if ($button_type == 3)
{
// Subscribe
$output .= print_eStore_subscribe_button_form($id);
}
else if ($button_type == 4)
{
// Download
$output .= eStore_show_download_now_button($id);
}
Is there a simple way with parameters to do the same thing with these other type of buttons?
Thanks,
FS
The buy now button functions don’t take those parameters. It needs to be added.
Okay, thanks.