Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add to Favorites


Guest

Recommended Posts

I am installing the add_favorites v1.0 and it went it quite easily and works properly BUT-

 

I cannot find where to knock the corners off the header of the box and (more importantly) instead of saying "Add to favorites" it keeps appearing as BOX_INFORMATION_BOOKMARK_TEXT

 

I've gone through and double-checked the call in english.php and it's fine

(// favourites box text in includes/boxes/add_favourites.php

define('BOX_INFORMATION_BOOKMARK', 'Add to Favourites');)

 

There are 2 instances in the actual php file that use this line and I've tried replacing both with no luck. I ran into the same problem with show_random and found the problem was a misplaced pair of ' and thought it might be causing it here but neither instance is enclosed with '.

 

The code looks like this:

        $text = "<a href=\"java script:window.external.AddFavorite('$self','$HTTP_HOST Online Shop - " . str_replace("'", "\'", $product_box_info_values["products_name"])."')\" > " . BOX_INFORMATION_BOOKMARK_TEXT . $product_box_info_values['products_name']."</a>";

    }

    else {

        $text = "<a href=\"java script:window.external.AddFavorite('$self','$HTTP_HOST Online Shop')\">"  . BOX_INFORMATION_BOOKMARK_TEXT . "</a>";

    }

 

    $info_box_contents[] = array('align' => 'center',

 

And you can see the shop here: http://oddsandinsonline.com/catalog/

Link to comment
Share on other sites

Yay! I got that part fixed- it was missing a define:

 

// favourites box text in includes/boxes/add_favourites.php

      define ('BOX_INFORMATION_BOOKMARK', 'Add to Favourites');

define('BOX_INFORMATION_BOOKMARK_TEXT', 'Click to Add!');

 

Now for those corners!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...