Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Wishlist 3.5 : ?Text link instead of Button?


Recommended Posts

Wishlist 3.5 is a GREAT contribution.

 

Because of design requirements, we need a 'text' link "Add to Wishlist" instead of the button wich is working now. [Please don't suggest to make a image button that look like text, this will be my final option]

 

My first try was setting an anchor with js link: "java script:add2wishlist()", where "add2wishlist" look like this:

 

function add2wishlist() {

some.variable.settings;

document.cart_quantity.submit();

}

(of course, this didnt work)

 

After a while, I realized that some POST variables where missing. If the form is submitted with the button

[i.e. -> echo tep_image_submit('button_wishlist.gif', 'Add to Wishlist', 'name="wishlist" value="wishlist"') ]

 

you will get the following POST variables:

 

products_id = xx

wishlist_x = xx

wishlist_y = xx

wishlist = wishlist

 

... wich are used to redirect to wishlist.php.

 

In order to write the wright js function, I need to know where the hell are set wishlist_x and wishlist_y. I looked for them with a magnifier into the wishlist.php class, wishlist.php and wishlist_public.php and didnt find them.

 

Please help me choosing (and completing) one of the following:

 

a.) You are blind, wishlist_x and wishlist_y are set here in ...

b.) You are stupid, why are you doing this like this? Try ...

c.) You are a dreamer, this cannot be done. Kill the graphic designer.

 

Thanks !!!

 

Albert

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.

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...