- Posts: 48
- Thank you received: 0
Add another "Buy" button
- solwebsolutions
-
Topic Author
- Offline
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : Chrome
On this page:
suzy-godsey.com/digit/index.php/user/checkout
We'd like to add another "Buy" button @ the bottom of the list of items to purchase.
...so that you don't have to scroll back up after reviewing the table of products the shopper is getting.
Please advise how we could do this.
Thank you!
Please Log in or Create an account to join the conversation.
Would it be possible to have more details ?
I do not see what you want to achieve.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- solwebsolutions
-
Topic Author
- Offline
- Posts: 48
- Thank you received: 0
If you start here:
suzy-godsey.com/digit/index.php/shop/product/listing
Add something to the cart...anything.
then, add 3 more things to the cart...and scroll through to view what you have in your cart.
The user has to scroll back up to click the "Buy" button.
We'd like to have a "Buy" button @ the bottom of the page too...not just one @ the top.
Is this possible?
Please Log in or Create an account to join the conversation.
Do you have edited the view "checkout / step" ? Because by default the "Buy" button is at the bottom of the page, not at the top.
So you can backup and reset this view to have the button at the bottom, or edit the view to add the button at the bottom too.
It is maybe your template which has this modification.
Please Log in or Create an account to join the conversation.
- solwebsolutions
-
Topic Author
- Offline
- Posts: 48
- Thank you received: 0
yes, we've actually moved the button to the top, but would also like it at the bottom to make it easy for someone to checkout.
Please advise how to add the 2nd "Buy" button to the bottom under the cart items.
See attached.
Thank you!
Please Log in or Create an account to join the conversation.
If you moved the button at the top, why not copy the moved code at the bottom too directly ?
The code to add is:
Please Log in or Create an account to join the conversation.
- solwebsolutions
-
Topic Author
- Offline
- Posts: 48
- Thank you received: 0
Thanks for the code block, but I've pasted the PHP code in several different spots, and the button isn't showing @ the bottom.
Please advise.
Thank you!
Please Log in or Create an account to join the conversation.
Could you see the 2 buttons in the html code ?
regard's
Please Log in or Create an account to join the conversation.
- solwebsolutions
-
Topic Author
- Offline
- Posts: 48
- Thank you received: 0
I know where I want to put the button by just typing in "button here"...that I can see in the correct place.
When I use this code, even inspecting the element via Chrome doesn't see the button:
<div class="clear_both"></div>
<?php
if($this->nextButton)
{
if($this->step == (count($this->steps) - 2)) {
$checkout_next_button = JText::_('CHECKOUT_BUTTON_FINISH');
if($checkout_next_button == 'CHECKOUT_BUTTON_FINISH')
$checkout_next_button = JText::_('NEXT');
} else
$checkout_next_button = JText::_('NEXT');
echo $this->cart->displayButton($checkout_next_button,'next',$this->params, hikashop_completeLink('checkout&task=step&step='.$this->step+1),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\')){ if(hikashopCheckMethods()){ document.getElementById(\'hikashop_validate\').value=1; this.disabled = true; document.forms[\'hikashop_checkout_form\'].submit();}} return false;','id="hikashop_checkout_next_button"');
$button = $this->config->get('button_style','normal');
if ($button=='css')
echo '<input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/></input>';
}
?>
Please Log in or Create an account to join the conversation.
Change the lines:
if($this->nextButton)
to:
if(true)
in that view and you should get the next button at the bottom on the checkout page.
Please Log in or Create an account to join the conversation.
- solwebsolutions
-
Topic Author
- Offline
- Posts: 48
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Please replace the whole code by:
Or it is a cache issue, maybe server cache or another one.
Please Log in or Create an account to join the conversation.
- solwebsolutions
-
Topic Author
- Offline
- Posts: 48
- Thank you received: 0
The code did not work:
suzy-godsey.com/digit/index.php/shop
Where would I see this next / bottom "Buy" button?
Should it be under the PayPal area?
Please advise...I've cleared cache and tried different browsers.
Please Log in or Create an account to join the conversation.
I can see the two buttons on your checkout page, one at the top, and the other one at the bottom.
So it seems that everything is ok.
Please Log in or Create an account to join the conversation.
- solwebsolutions
-
Topic Author
- Offline
- Posts: 48
- Thank you received: 0
Please Log in or Create an account to join the conversation.