[Skip to main content](#vessel-content)

#   Add another "Buy" button

##

- **[solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")**
- [![solwebsolutions's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile") Topic Author
- [ Offline](/forum/user/16564-solwebsolutions)

Less More

- Posts: 48
- Thank you received: 0
-
-

11 years 11 months ago -  11 years 11 months ago [\#179097](#179097) by [solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")  *[Add another "Buy" button](/forum/26-product-category-display/872926-add-another-buy-button#179097 "-- HikaShop version -- : 2.3.4 -- 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 &quot;Buy&quot; 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!")* was created by *[solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")*

-- HikaShop version -- : 2.3.4
-- 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](http://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!

Last edit: 11 years 11 months ago by [solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzI5MjYtYWRkLWFub3RoZXItYnV5LWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 11 months ago [\#179167](#179167) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Add another "Buy" button](/forum/26-product-category-display/872926-add-another-buy-button#179167 "-- HikaShop version -- : 2.3.4 -- 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 &quot;Buy&quot; 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!")*

Hi,

Would it be possible to have more details ?
I do not see what you want to achieve.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzI5MjYtYWRkLWFub3RoZXItYnV5LWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")**
- [![solwebsolutions's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile") Topic Author
- [ Offline](/forum/user/16564-solwebsolutions)

Less More

- Posts: 48
- Thank you received: 0
-
-

11 years 11 months ago [\#179252](#179252) by [solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")  Replied by *[solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")* on topic *[Add another "Buy" button](/forum/26-product-category-display/872926-add-another-buy-button#179252 "-- HikaShop version -- : 2.3.4 -- 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 &quot;Buy&quot; 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!")*

Hi!
If you start here:
[ suzy-godsey.com/digit/index.php/shop/product/listing](http://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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzI5MjYtYWRkLWFub3RoZXItYnV5LWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 11 months ago [\#179271](#179271) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Add another "Buy" button](/forum/26-product-category-display/872926-add-another-buy-button#179271 "-- HikaShop version -- : 2.3.4 -- 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 &quot;Buy&quot; 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!")*

Hi,

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzI5MjYtYWRkLWFub3RoZXItYnV5LWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")**
- [![solwebsolutions's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile") Topic Author
- [ Offline](/forum/user/16564-solwebsolutions)

Less More

- Posts: 48
- Thank you received: 0
-
-

11 years 10 months ago [\#182337](#182337) by [solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")  Replied by *[solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")* on topic *[Add another "Buy" button](/forum/26-product-category-display/872926-add-another-buy-button#182337 "-- HikaShop version -- : 2.3.4 -- 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 &quot;Buy&quot; 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!")*

Hi!

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzI5MjYtYWRkLWFub3RoZXItYnV5LWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 10 months ago [\#182348](#182348) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Add another "Buy" button](/forum/26-product-category-display/872926-add-another-buy-button#182348 "-- HikaShop version -- : 2.3.4 -- 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 &quot;Buy&quot; 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!")*

Hi,

If you moved the button at the top, why not copy the moved code at the bottom too directly ?
The code to add is: Code:

if($this-&gt;nextButton) { if($this-&gt;step == (count($this-&gt;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-&gt;cart-&gt;displayButton($checkout_next_button,'next',$this-&gt;params, hikashop_completeLink('checkout&amp;task=step&amp;step='.$this-&gt;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-&gt;config-&gt;get('button_style','normal'); if ($button=='css') echo '&lt;input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/&gt;&lt;/input&gt;'; }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzI5MjYtYWRkLWFub3RoZXItYnV5LWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")**
- [![solwebsolutions's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile") Topic Author
- [ Offline](/forum/user/16564-solwebsolutions)

Less More

- Posts: 48
- Thank you received: 0
-
-

11 years 10 months ago [\#182504](#182504) by [solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")  Replied by *[solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")* on topic *[Add another "Buy" button](/forum/26-product-category-display/872926-add-another-buy-button#182504 "-- HikaShop version -- : 2.3.4 -- 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 &quot;Buy&quot; 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!")*

Hi!

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzI5MjYtYWRkLWFub3RoZXItYnV5LWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")**
- [![lionel75's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11856-lionel75 "View lionel75's Profile")
- [ Offline](/forum/user/11856-lionel75)

Less More

- Posts: 846
- Thank you received: 92
-
-

11 years 10 months ago [\#182506](#182506) by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")  Replied by *[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")* on topic *[Add another "Buy" button](/forum/26-product-category-display/872926-add-another-buy-button#182506 "-- HikaShop version -- : 2.3.4 -- 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 &quot;Buy&quot; 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!")*

Hi
Could you see the 2 buttons in the html code ?
regard's

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzI5MjYtYWRkLWFub3RoZXItYnV5LWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")**
- [![solwebsolutions's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile") Topic Author
- [ Offline](/forum/user/16564-solwebsolutions)

Less More

- Posts: 48
- Thank you received: 0
-
-

11 years 10 months ago [\#182531](#182531) by [solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")  Replied by *[solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")* on topic *[Add another "Buy" button](/forum/26-product-category-display/872926-add-another-buy-button#182531 "-- HikaShop version -- : 2.3.4 -- 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 &quot;Buy&quot; 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!")*

I've removed the customization via the trash can icon click, deleted cache, and the buy button is still on top.

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:

&lt;div class="clear_both"&gt;&lt;/div&gt;

&lt;?php
if($this-&gt;nextButton)
{
if($this-&gt;step == (count($this-&gt;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-&gt;cart-&gt;displayButton($checkout_next_button,'next',$this-&gt;params, hikashop_completeLink('checkout&amp;task=step&amp;step='.$this-&gt;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-&gt;config-&gt;get('button_style','normal');
if ($button=='css')
echo '&lt;input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/&gt;&lt;/input&gt;';
}
?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzI5MjYtYWRkLWFub3RoZXItYnV5LWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14267
-
-

11 years 10 months ago [\#182589](#182589) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add another "Buy" button](/forum/26-product-category-display/872926-add-another-buy-button#182589 "-- HikaShop version -- : 2.3.4 -- 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 &quot;Buy&quot; 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!")*

Hi,

Change the lines:
if($this-&gt;nextButton)
to:
if(true)
in that view and you should get the next button at the bottom on the checkout page.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzI5MjYtYWRkLWFub3RoZXItYnV5LWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")**
- [![solwebsolutions's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile") Topic Author
- [ Offline](/forum/user/16564-solwebsolutions)

Less More

- Posts: 48
- Thank you received: 0
-
-

11 years 10 months ago [\#182607](#182607) by [solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")  Replied by *[solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")* on topic *[Add another "Buy" button](/forum/26-product-category-display/872926-add-another-buy-button#182607 "-- HikaShop version -- : 2.3.4 -- 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 &quot;Buy&quot; 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!")*

tried...no luck...see attached code used

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzI5MjYtYWRkLWFub3RoZXItYnV5LWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 10 months ago [\#182621](#182621) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Add another "Buy" button](/forum/26-product-category-display/872926-add-another-buy-button#182621 "-- HikaShop version -- : 2.3.4 -- 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 &quot;Buy&quot; 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!")*

Hi,

Please replace the whole code by: Code:

&lt;div id="hikashop_checkout_page" class="hikashop_checkout_page hikashop_checkout_page_step&lt;?php echo $this-&gt;step; ?&gt;"&gt; &lt;?php if(hikashop_level(1)){ $open_hour = $this-&gt;config-&gt;get('store_open_hour',0); $close_hour = $this-&gt;config-&gt;get('store_close_hour',0); $open_minute = $this-&gt;config-&gt;get('store_open_minute',0); $close_minute = $this-&gt;config-&gt;get('store_close_minute',0); if($open_hour!=$close_hour &#124;&#124; $open_minute!=$close_minute){ function getCurrentDate($format = '%H'){ if(version_compare(JVERSION,'1.6.0','&gt;=')) $format = str_replace(array('%H','%M'),array('H','i'),$format); return (int)JHTML::_('date',time()- date('Z'),$format,null); } $current_hour = hikashop_getDate(time(),'%H'); $current_minute = hikashop_getDate(time(),'%M'); $closed=false; if($open_hour&lt;$close_hour &#124;&#124; ($open_hour==$close_hour &amp;&amp; $open_minute&lt;$close_minute)){ //are we before the open hour ? if($current_hour&lt;$open_hour &#124;&#124; ($current_hour==$open_hour &amp;&amp; $current_minute&lt;$open_minute)){ //we are before the open hour $closed=true; } //are we after the close hour ? if($close_hour&lt;$current_hour &#124;&#124; ($current_hour==$close_hour &amp;&amp; $close_minute&lt;$current_minute)){ //we are after the close hour $closed=true; } }else{ $closed=true; //are we before the close hour ? if($current_hour&lt;$close_hour &#124;&#124; ($current_hour==$close_hour &amp;&amp; $current_minute&lt;$close_minute)){ //we are before the close hour $closed=false; } //are we after the open hour ? if($open_hour&lt;$current_hour &#124;&#124; ($current_hour==$open_hour &amp;&amp; $open_minute&lt;$current_minute)){ //we are after the open hour $closed=false; } } if($closed){ $app=&amp; JFactory::getApplication(); $app-&gt;enqueueMessage(JText::sprintf('THE_STORE_IS_ONLY_OPEN_FROM_X_TO_X',$open_hour.':'.sprintf('%02d', $open_minute),$close_hour.':'.sprintf('%02d', $close_minute))); echo '&lt;/div&gt;'; return; } } } global $Itemid; $checkout_itemid = $this-&gt;config-&gt;get('checkout_itemid'); if(!empty($checkout_itemid )){ $Itemid = $checkout_itemid ; } $url_itemid=''; if(!empty($Itemid)){ $url_itemid='&amp;Itemid='.$Itemid; } if($this-&gt;display_checkout_bar){ if(HIKASHOP_RESPONSIVE) { ?&gt; &lt;div class="hikashop_wizardbar"&gt; &lt;ul&gt; &lt;?php } else { ?&gt; &lt;div id="hikashop_cart_bar" class="hikashop_cart_bar"&gt; &lt;?php } $already=true; if (count($this-&gt;steps) &gt; $this-&gt;step+1) $link=true; foreach($this-&gt;steps as $k =&gt; $step){ $step=explode('_',trim($step)); $step_name = reset($step); if($this-&gt;display_checkout_bar==2 &amp;&amp; $step_name=='end'){ continue; } $class = ''; $badgeClass = ''; if($k == $this-&gt;step){ $already = false; $class .= ' hikashop_cart_step_current'; $badgeClass = 'info'; } if($already){ $class .= ' hikashop_cart_step_finished'; $badgeClass = 'success'; } if(HIKASHOP_RESPONSIVE) { ?&gt; &lt;li class="&lt;?php echo trim($class); ?&gt;"&gt; &lt;span class="badge badge-&lt;?php echo $badgeClass; ?&gt;"&gt;&lt;?php echo ($k + 1); ?&gt;&lt;/span&gt; &lt;?php if($k == $this-&gt;step &#124;&#124; empty($link)) { echo JText::_('HIKASHOP_CHECKOUT_'.strtoupper($step_name)); } else { ?&gt; &lt;a href="&lt;?php echo hikashop_completeLink('checkout&amp;task=step&amp;step='.$k.$url_itemid);?&gt;"&gt; &lt;?php echo JText::_('HIKASHOP_CHECKOUT_'.strtoupper($step_name));?&gt; &lt;/a&gt; &lt;?php } ?&gt; &lt;span class="hikashop_chevron"&gt;&lt;/span&gt; &lt;/li&gt; &lt;?php } else { ?&gt; &lt;div class="hikashop_cart_step&lt;?php echo $class;?&gt;"&gt; &lt;span&gt;&lt;?php if($k == $this-&gt;step &#124;&#124; empty($link)){ echo JText::_('HIKASHOP_CHECKOUT_'.strtoupper($step_name)); }else{ ?&gt; &lt;a href="&lt;?php echo hikashop_completeLink('checkout&amp;task=step&amp;step='.$k.$url_itemid);?&gt;"&gt; &lt;?php echo JText::_('HIKASHOP_CHECKOUT_'.strtoupper($step_name));?&gt; &lt;/a&gt; &lt;?php } ?&gt;&lt;/span&gt; &lt;/div&gt;&lt;?php } } ?&gt; &lt;/div&gt; &lt;?php } if(empty($this-&gt;noform)){ ?&gt; &lt;form action="&lt;?php echo hikashop_completeLink('checkout&amp;task=step&amp;step='.($this-&gt;step+1).$url_itemid); ?&gt;" method="post" name="hikashop_checkout_form" enctype="multipart/form-data" onsubmit="if('function' == typeof(hikashopSubmitForm)) { hikashopSubmitForm('hikashop_checkout_form'); return false; } else { return true; }"&gt; &lt;?php } if(true) { if($this-&gt;step == (count($this-&gt;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-&gt;cart-&gt;displayButton($checkout_next_button,'next',$this-&gt;params, hikashop_completeLink('checkout&amp;task=step&amp;step='.$this-&gt;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-&gt;config-&gt;get('button_style','normal'); if ($button=='css') echo '&lt;input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/&gt;&lt;/input&gt;'; } $dispatcher = JDispatcher::getInstance(); $this-&gt;nextButton = true; foreach($this-&gt;layouts as $layout) { $layout = trim($layout); if($layout == 'end') { $this-&gt;continueShopping = ''; } if(substr($layout, 0, 4) != 'plg.') { $this-&gt;setLayout($layout); echo $this-&gt;loadTemplate(); } else { $html = ''; $dispatcher-&gt;trigger('onCheckoutStepDisplay', array($layout, &amp;$html, &amp;$this)); if(!empty($html)) { echo $html; } } } if(empty($this-&gt;noform)){ ?&gt; &lt;input type="hidden" name="Itemid" value="&lt;?php echo $Itemid; ?&gt;"/&gt; &lt;input type="hidden" name="option" value="com_hikashop"/&gt; &lt;input type="hidden" name="ctrl" value="checkout"/&gt; &lt;input type="hidden" name="task" value="step"/&gt; &lt;input type="hidden" name="previous" value="&lt;?php echo $this-&gt;step; ?&gt;"/&gt; &lt;input type="hidden" name="step" value="&lt;?php echo $this-&gt;step+1; ?&gt;"/&gt; &lt;input type="hidden" id="hikashop_validate" name="validate" value="0"/&gt; &lt;?php echo JHTML::_( 'form.token' ); ?&gt; &lt;input type="hidden" name="unique_id" value="[&lt;?php echo md5(uniqid())?&gt;]"/&gt; &lt;br style="clear:both"/&gt; &lt;?php if(true) { if($this-&gt;step == (count($this-&gt;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-&gt;cart-&gt;displayButton($checkout_next_button,'next',$this-&gt;params, hikashop_completeLink('checkout&amp;task=step&amp;step='.$this-&gt;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-&gt;config-&gt;get('button_style','normal'); if ($button=='css') echo '&lt;input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/&gt;&lt;/input&gt;'; } ?&gt; &lt;/form&gt; &lt;?php if($this-&gt;continueShopping){ if(strpos($this-&gt;continueShopping,'Itemid')===false){ if(strpos($this-&gt;continueShopping,'index.php?')!==false){ $this-&gt;continueShopping.=$url_itemid; } } if(!preg_match('#^https?://#',$this-&gt;continueShopping)) $this-&gt;continueShopping = JURI::base().ltrim($this-&gt;continueShopping,'/'); echo $this-&gt;cart-&gt;displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this-&gt;params,JRoute::_($this-&gt;continueShopping),'window.location=\''.JRoute::_($this-&gt;continueShopping).'\';return false;','id="hikashop_checkout_shopping_button"'); } } ?&gt; &lt;/div&gt; &lt;div class="clear_both"&gt;&lt;/div&gt; &lt;?php if(JRequest::getWord('tmpl','')=='component'){ exit; }

If this doesn't work as expected, so you are not editing the view in the correct template, or you have another override in the folder "templates/YOUR_TEMPLATE/html/com_hikashop".
Or it is a cache issue, maybe server cache or another one.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzI5MjYtYWRkLWFub3RoZXItYnV5LWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")**
- [![solwebsolutions's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile") Topic Author
- [ Offline](/forum/user/16564-solwebsolutions)

Less More

- Posts: 48
- Thank you received: 0
-
-

11 years 10 months ago [\#182709](#182709) by [solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")  Replied by *[solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")* on topic *[Add another "Buy" button](/forum/26-product-category-display/872926-add-another-buy-button#182709 "-- HikaShop version -- : 2.3.4 -- 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 &quot;Buy&quot; 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!")*

Hello!

The code did not work:
[ suzy-godsey.com/digit/index.php/shop](http://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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzI5MjYtYWRkLWFub3RoZXItYnV5LWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 10 months ago [\#182723](#182723) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Add another "Buy" button](/forum/26-product-category-display/872926-add-another-buy-button#182723 "-- HikaShop version -- : 2.3.4 -- 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 &quot;Buy&quot; 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!")*

Hi,

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzI5MjYtYWRkLWFub3RoZXItYnV5LWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")**
- [![solwebsolutions's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile") Topic Author
- [ Offline](/forum/user/16564-solwebsolutions)

Less More

- Posts: 48
- Thank you received: 0
-
-

11 years 10 months ago [\#182835](#182835) by [solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")  Replied by *[solwebsolutions](/forum/user/16564-solwebsolutions "View solwebsolutions's Profile")* on topic *[Add another "Buy" button](/forum/26-product-category-display/872926-add-another-buy-button#182835 "-- HikaShop version -- : 2.3.4 -- 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 &quot;Buy&quot; 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!")*

Thank you so much for the support!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzI5MjYtYWRkLWFub3RoZXItYnV5LWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.500 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
