VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: milstan on October 07, 2011, 11:32:04 AM

Title: [fixed] Checkout link incorrect
Post by: milstan on October 07, 2011, 11:32:04 AM
2.0.0-RC-2G

After click CHECKOUT button, & is not good in the link
index.php?option=com_virtuemart&view=user&task=editaddresscheckout&addrtype=BT&Itemid=166
and should be
index.php?option=com_virtuemart&view=user&task=editaddresscheckout&addrtype=BT&Itemid=166

That causes modules that's published on the VM's  menu item(s) not showing.
Title: Re: Checkout link incorrect
Post by: PRO on October 07, 2011, 19:09:13 PM
I have been looking whats wrong here, and cant find it.

I do see the page has a couple of html errors that might cause it.

Title: Re: Checkout link incorrect
Post by: PRO on October 07, 2011, 19:20:48 PM
I did find these in
cart/view.html.php

      $continue_link_html = '<a class="continue_link" href="'.$continue_link.'" />'.JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING').'</a>';

should be this
$continue_link_html = '<a class="continue_link" href="'.$continue_link.'" >'.JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING').'</a>';

and this
            $checkout_link_html = '<a class="checkout_link" href="javascript:document.checkoutForm.submit();" /><span>'.$text.'</span></a>';
should be this
            $checkout_link_html = '<a class="checkout_link" href="javascript:document.checkoutForm.submit();" ><span>'.$text.'</span></a>';


BUT, that still did not fix the problem
Title: Re: Checkout link incorrect
Post by: Milbo on October 07, 2011, 21:23:48 PM
thx
Title: Re: [fixed] Checkout link incorrect
Post by: tez on June 28, 2012, 03:49:35 AM
that code being in view.html.php means we can't customise the checkout / continue button with an override.
Title: Re: [fixed] Checkout link incorrect
Post by: PRO on June 28, 2012, 22:08:00 PM
Quote from: tez on June 28, 2012, 03:49:35 AM
that code being in view.html.php means we can't customise the checkout / continue button with an override.

tez, what do you want to do to it?

Title: Re: [fixed] Checkout link incorrect
Post by: tez on July 02, 2012, 04:31:20 AM
Put a span tag around the text so I can hide it with CSS and use a different images in the background of each link.
Title: Re: [fixed] Checkout link incorrect
Post by: Eugen S. on July 03, 2012, 12:12:10 PM
Quote from: BanquetTables.pro on October 07, 2011, 19:20:48 PM
I did find these in
cart/view.html.php

      $continue_link_html = '<a class="continue_link" href="'.$continue_link.'" />'.JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING').'</a>';

should be this
$continue_link_html = '<a class="continue_link" href="'.$continue_link.'" >'.JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING').'</a>';

and this
            $checkout_link_html = '<a class="checkout_link" href="javascript:document.checkoutForm.submit();" /><span>'.$text.'</span></a>';
should be this
            $checkout_link_html = '<a class="checkout_link" href="javascript:document.checkoutForm.submit();" ><span>'.$text.'</span></a>';


BUT, that still did not fix the problem


I added a <span> tag within the <a> tag for continue link. Checkout button already had this...