Different "Continue Shopping" links for fancy notification
-
Hi!
I’m using wp 3.9.1 with wpec 3.8.14.1 and gold cart 2.9.7.8.
I need a bit of help, please, in changing the behavior of the notification like this:
– if I am on the main products page, choosing “Continue Shopping” closes it (as it is by default)
– and from the single product product page, choosing “Continue Shopping” redirects back to the main products page.I tried modifying the code in /wpsc-components/theme-engine-v1/helpers/product.php and it works (I can change the output url from there), but I’m not sure how and where to place my conditionals, like so:
if ($page_id = $my_page_id) { //what should go here? $output .= "<a href='#' onclick='jQuery(\"#fancy_notification\").css(\"display\", \"none\"); return false;' class='continue_shopping'>" . __( 'Continue Shopping', 'wpsc' ) . "</a>"; } else { //so if it's not any of the products pages $output .= "<a href='my_products_page_url_here' class='continue_shopping'>" . __( 'Continue Shopping', 'wpsc' ) . "</a>"; } return $output;
Thank you for taking the time to help!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Different "Continue Shopping" links for fancy notification’ is closed to new replies.