• HI I’m working the e-commerce plugin and I received this advice for a change I want to make ( below). But I can’t make the change without getting error messages .I got a book out the library and I’m slowly learning php but I wonder if anyone would help in the meanwhile

    basically I can’t change the href etc line
    you can see on my site I want “visit the store” to point to the page I made for the store found in my navigation, not the product list page that is automatically created by the plug-in. I must be adding a ” or a ‘ or a something ! I can do html a bit

    I was thinking it was

    $output .= "<a href="http://www.soulsilver.co.nz/store">".TXT_WPSC_VISITTHESHOP."</a>";

    what do I need to change??? HELP

    Here is advice from the e-commerce forum:
    EDIT: You can change the URL that it points to in “shopping_cart_functions.php” on line 364.

    You’ll see this line:

    $output .= "<b href='".get_option('product_list_url')."'>".TXT_WPSC_VISITTHESHOP."</b>";

    Just change the href to point to where you’d like it to...and remember in that href there are ” …and a ‘ …messing that up, will mess up your link also.

    i changed the “a” tags to “b” so that all the code would show up.

Viewing 2 replies - 1 through 2 (of 2 total)
  • It appears at least one problem is the double quotes inside of the string which confuses the PHP parser.

    Try:

    $output .= '<a href="http://www.soulsilver.co.nz/store">'.TXT_WPSC_VISITTHESHOP."</a>";

    Notice I changed two double quotes to single quotes.

    For more information, read this about strings in PHP http://www.tizag.com/phpT/strings.php .

    Also, what do you see when you change your code to:

    $output .= "<b href='".get_option('product_list_url')."'>".TXT_WPSC_VISITTHESHOP."</b>";
    ?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘help with writing a link please’ is closed to new replies.