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

#   "Pay now" email link error

##

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

Less More

- Posts: 68
- Thank you received: 8
-
-

13 years 2 weeks ago -  13 years 2 weeks ago [\#130298](#130298) by [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")  *["Pay now" email link error](/forum/3-bug-report/863247-pay-now-email-link-error#130298 "When a user creates an order a creation email is sent to them. This email includes a &quot;Pay now&quot; link. The link works fine if they are logged in to my website but if they are not it comes up with an...")* was created by *[MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")*

When a user creates an order a creation email is sent to them. This email includes a "Pay now" link. The link works fine if they are logged in to my website but if they are not it comes up with an error message "The payment method could not be found" and instead of redirecting them to a login page it actually creates a blank order! (see attached)

The payment method I am using is paypal.

- [ ![he9f8c79.png](/forum/attachment/13316) ](/forum/attachment/13316 "he9f8c79.png") [ ](/forum/attachment/13316?download=1 "he9f8c79.png")
- [ ![hb9440ae.png](/forum/attachment/13317) ](/forum/attachment/13317 "hb9440ae.png") [ ](/forum/attachment/13317?download=1 "hb9440ae.png")

Last edit: 13 years 2 weeks ago by [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMyNDctcGF5LW5vdy1lbWFpbC1saW5rLWVycm9yP3RtcGw9bWFya2Rvd24=) 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)
-

13 years 2 weeks ago [\#130357](#130357) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *["Pay now" email link error](/forum/3-bug-report/863247-pay-now-email-link-error#130357 "When a user creates an order a creation email is sent to them. This email includes a &quot;Pay now&quot; link. The link works fine if they are logged in to my website but if they are not it comes up with an...")*

Hi,

Thanks to give us more informations about your environment.
(fill the lines you deleted when you have created this topic)

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

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

Less More

- Posts: 68
- Thank you received: 8
-
-

13 years 2 weeks ago [\#130513](#130513) by [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")  Replied by *[MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")* on topic *["Pay now" email link error](/forum/3-bug-report/863247-pay-now-email-link-error#130513 "When a user creates an order a creation email is sent to them. This email includes a &quot;Pay now&quot; link. The link works fine if they are logged in to my website but if they are not it comes up with an...")*

-- url of the page with the problem -- : [ mumshealth.com](http://mumshealth.com)
-- HikaShop version -- : 2.2.2
-- Joomla version -- : 3.1.5
-- PHP version -- : 5.3.3
-- Browser(s) name and version -- : Chrome 30.0.1599.101 m
-- Error-message(debug-mod must be tuned on) -- :

Notice: Trying to get property of non-object in /var/www/vhosts/mumshealth.com/components/com_hikashop/controllers/order.php on line 154 Notice: Undefined property: stdClass::$order_full_price in /var/www/mumshealth.com/administrator/components/com_awocoupon/helpers/estore/hikashop/giftcerthandler.php on line 94 Notice: Undefined property: stdClass::$cart in /var/www/vhosts/mumshealth.com/administrator/components/com_hikashop/classes/order.php on line 327 Notice: Trying to get property of non-object in /var/www/vhosts/mumshealth.com/administrator/components/com_hikashop/classes/order.php on line 327 Warning: Invalid argument supplied for foreach() in /var/www/vhosts/mumshealth.com/administrator/components/com_hikashop/classes/order.php on line 327 Notice: Undefined property: stdClass::$order_user_id in /var/www/vhosts/mumshealth.com/components/com_hikashop/controllers/order.php on line 203 Notice: Undefined property: stdClass::$order_payment_method in /var/www/vhosts/mumshealth.com/components/com_hikashop/controllers/order.php on line 205 Notice: Undefined property: stdClass::$order_payment_method in /var/www/vhosts/mumshealth.com/components/com_hikashop/controllers/order.php on line 212

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMyNDctcGF5LW5vdy1lbWFpbC1saW5rLWVycm9yP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

13 years 2 weeks ago [\#130555](#130555) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *["Pay now" email link error](/forum/3-bug-report/863247-pay-now-email-link-error#130555 "When a user creates an order a creation email is sent to them. This email includes a &quot;Pay now&quot; link. The link works fine if they are logged in to my website but if they are not it comes up with an...")*

Hi,

Indeed, that's a case which is not handled properly.

Add the code: Code:

if(!$this-&gt;_check()){ return false; }

after: Code:

function pay(){

in the file components/com_hikashop/controller/order.php and that will fix the problem.

The following user(s) said Thank You: [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")

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

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

Less More

- Posts: 68
- Thank you received: 8
-
-

13 years 2 weeks ago [\#130587](#130587) by [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")  Replied by *[MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")* on topic *["Pay now" email link error](/forum/3-bug-report/863247-pay-now-email-link-error#130587 "When a user creates an order a creation email is sent to them. This email includes a &quot;Pay now&quot; link. The link works fine if they are logged in to my website but if they are not it comes up with an...")*

Fixed most of the problems but there are 2 small glitches.

1. The user can still click the pay now link even after they have already paid. I dont want them to get confused and pay twice.

2. If the user clicks the link after their order has been deleted for some reason it still says "no payment method found" and creates a new blank order.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMyNDctcGF5LW5vdy1lbWFpbC1saW5rLWVycm9yP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

13 years 2 weeks ago [\#130597](#130597) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *["Pay now" email link error](/forum/3-bug-report/863247-pay-now-email-link-error#130597 "When a user creates an order a creation email is sent to them. This email includes a &quot;Pay now&quot; link. The link works fine if they are logged in to my website but if they are not it comes up with an...")*

1. The "pay now" button is only available if the orders are created. Once the orders are confirmed (which normally happens automatically when your payment gateway sends the payment notification to HikaShop), the button should not display anymore.

2. We'll investigate that and fix it for next release but note that you're not supposed to delete orders. It's best practice to cancel them in order to leave a trace.

The following user(s) said Thank You: [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")

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

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

Less More

- Posts: 68
- Thank you received: 8
-
-

13 years 2 weeks ago [\#130602](#130602) by [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")  Replied by *[MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")* on topic *["Pay now" email link error](/forum/3-bug-report/863247-pay-now-email-link-error#130602 "When a user creates an order a creation email is sent to them. This email includes a &quot;Pay now&quot; link. The link works fine if they are logged in to my website but if they are not it comes up with an...")*

1. The problem is that order creation email includes its own "pay now" link. This bypasses the pay now button on the orders page completely and takes them directly to paypal.

2. I don't normally delete customers orders usually just test orders that I've created because I don't want them to clutter up too much. Unlike some European countries Canadian law doesn't care if your invoice numbers are out of order or in any particular order at all (that I know of).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMyNDctcGF5LW5vdy1lbWFpbC1saW5rLWVycm9yP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

13 years 2 weeks ago [\#130651](#130651) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *["Pay now" email link error](/forum/3-bug-report/863247-pay-now-email-link-error#130651 "When a user creates an order a creation email is sent to them. This email includes a &quot;Pay now&quot; link. The link works fine if they are logged in to my website but if they are not it comes up with an...")*

1. Ok I though that you were talking about the display of the pay now button on the orders listing page, not about that.
Indeed, we're missing a check here.
Add the code: Code:

$config =&amp; hikashop_config(); $default_status = $config-&gt;get('order_created_status','created'); if($order-&gt;order_status!=$default_status){ $app =&amp; JFactory::getApplication(); $app-&gt;enqueueMessage('The order '.$order-&gt;order_number.' cannot be paid anymore.'); parent::listing(); return false; }

before Code:

if(empty($order-&gt;order_currency_id)){

in the file components/com_hikashop/controller/order.php and that will fix the problem.

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

- **[serbofleconcepts](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")**
- [![serbofleconcepts's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37141.gif)](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")
- [ Offline](/forum/user/37141-serbofleconcepts)

Less More

- Posts: 158
- Thank you received: 5
-
-

9 years 1 month ago [\#279590](#279590) by [serbofleconcepts](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")  Replied by *[serbofleconcepts](/forum/user/37141-serbofleconcepts "View serbofleconcepts's Profile")* on topic *["Pay now" email link error](/forum/3-bug-report/863247-pay-now-email-link-error#279590 "When a user creates an order a creation email is sent to them. This email includes a &quot;Pay now&quot; link. The link works fine if they are logged in to my website but if they are not it comes up with an...")*

I can see this thread is a few years old but I am having the same issue on 3.2.0. I went to look for the code on the file above but that part does not exist.

Can you please advise how I can remove the pay now text from the order email.

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMyNDctcGF5LW5vdy1lbWFpbC1saW5rLWVycm9yP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

9 years 1 month ago [\#279596](#279596) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *["Pay now" email link error](/forum/3-bug-report/863247-pay-now-email-link-error#279596 "When a user creates an order a creation email is sent to them. This email includes a &quot;Pay now&quot; link. The link works fine if they are logged in to my website but if they are not it comes up with an...")*

Hi,

You can remove that code: Code:

$vars['ORDER_SUMMARY'] .= $content;

from the preload version of the order creation notification email.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjMyNDctcGF5LW5vdy1lbWFpbC1saW5rLWVycm9yP3RtcGw9bWFya2Rvd24=) 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.086 seconds

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