Here's how you add a url in the coupon store
-
I am surprised that author has left the plugin broken so far with no fix in sight.
Here’s how to make the url addition possible.
Open plugin folder/admin_functions/social_settings.php and find this code
,/* "coupon_store_url" => array ( "name" => "coupon_store_url", "default" => "", "label" => "Coupon Store URL", "type" => "text", "desc" => "The URL where coupon can be redeemed." )*/
Remove the /* and */ around it. The author had the code in the plugin but for some reason it has been kept commented. The final code should look like
, "coupon_store_url" => array ( "name" => "coupon_store_url", "default" => "", "label" => "Coupon Store URL", "type" => "text", "desc" => "The URL where coupon can be redeemed." )
Now open the index.php in the main plugin folder and find this code
get_post_meta($store_id,'coupon_store_url',true),
and change it to
$post_meta['coupon_store_url'][0],
This should do it. Now you can add the url from the edit post page and they will feature properly in the frontend.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Here's how you add a url in the coupon store’ is closed to new replies.