Author Topic: Continue in shopping instead of order_done  (Read 393 times)

psm

  • Jr. Member
  • **
  • Posts: 93
Continue in shopping instead of order_done
« on: August 11, 2018, 12:01:08 pm »
Dear all,
I made some modifications on my e-shop.

After I found that when I confirm my order it does not show order done page but continue in shopping.

There is also problem that I cannot remove orders from virtuemart order page in admin. It shows me error "An invoice has been issue, you are not allowed to delete this order 082018028". And there is invoice attached already when status is confirmed by shopper.

Could you help me to solve this issue?

Thanks

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1721
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Continue in shopping instead of order_done
« Reply #1 on: August 11, 2018, 12:16:10 pm »
Quote
After I found that when I confirm my order it does not show order done page but continue in shopping.
Hmm, only You should know what You have changed. Compare to previous versions or unzip a cop on your computer and check for differences. Start with the newest changes.

Quote
There is also problem that I cannot remove orders from virtuemart order page in admin. It shows me error "An invoice has been issue, you are not allowed to delete this order 082018028". And there is invoice attached already when status is confirmed by shopper.
Turn of invoice creation in configuration for this order status. OR leave it off completely and press button in back end to issue invoice.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

psm

  • Jr. Member
  • **
  • Posts: 93
Re: Continue in shopping instead of order_done
« Reply #2 on: August 11, 2018, 13:14:56 pm »
I already vhecked everything. Do you know what can be wrong?

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1721
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Continue in shopping instead of order_done
« Reply #3 on: August 11, 2018, 19:50:14 pm »
Quote
  Turn of invoice creation in configuration for this order status. OR leave it off completely and press button in back end to issue invoice 

Quote
  I already vhecked everything
What did you check ? What did you change ? We can not help with this little info. Did you even bother to read my reply ? Restore everything and see if it works again. Then make the changes carefully one at a time until it breaks.
Jörgen @ Kreativ Fotografi


Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

psm

  • Jr. Member
  • **
  • Posts: 93
Re: Continue in shopping instead of order_done
« Reply #4 on: August 12, 2018, 09:02:13 am »
Hello, of course I read you reply and follow it.
I have backup from few days before update from joomla 3.6.5/virtuemart 3.2.0 to joomla 3.8.11/virtuemart 3.2.14.

I checked all files which I could change (plugin, com_virtuemart/views/invoice/ ,com_virtuemart/views/invoice/) and which I changed (according to file size and date of modification of file):
1. with backup
2. with new virtuemart files (downloaded from web)
Only one file was different and I know about it - order_done.php, which I changed. I replaced it with original from downloaded virtuemart - it did not help.

After I completly replace onepage_generic plugin for checkout with old one. It did not help.

So I checked settings of virtuemart for invoice:
1. Default Order Status to create an invoice is set up "Confirmed".
2. Orderstatus to use for attachment is set up "Confirmed".

It is not possible to turn off (1.). After change it was the same. So I changed it to status "Completed" and it was the same - imediatelly when order was done system create invoice. Normal process is creating invoice after I set up order as "Confirmed".

So after this all, I did not find problem.

psm

  • Jr. Member
  • **
  • Posts: 93
Re: Continue in shopping instead of order_done
« Reply #5 on: August 12, 2018, 10:01:32 am »
Finally I fix problem with invoices. I found that I used order_done.php in template overrides and so:
1. I changed order_done.php in overrides for orderdone.php from downloaded virtuemart installer
2. Than I paste order_done.php and orderdone.php from downloaded virtuemart installer to my virtuemart

After it srats to work. Creating of invoices was fixed. Now I can delete all new orders.

But I have still problem with order done page. It is still not showed.

Could you please advice me how this condition works?

if (vRequest::getBool('display_title',true)) {
   echo '<h3>'.vmText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU').'</h3>';

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8202
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Continue in shopping instead of order_done
« Reply #6 on: August 12, 2018, 10:25:42 am »
Quote
But I have still problem with order done page. It is still not showed.

you mean it is blank or what?  what is the url u land on when an order is completed?

the
if (vRequest::getBool('display_title',true)) {
   echo '<h3>'.vmText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU').'</h3>';

just shows the title if display_title is true

if u want it to display always just use

 echo '<h3>'.vmText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU').'</h3>';

don't forget to delete the closing brace which isn't in your pasted code

GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

psm

  • Jr. Member
  • **
  • Posts: 93
Re: Continue in shopping instead of order_done
« Reply #7 on: August 12, 2018, 11:26:02 am »
Now I am again on start.

I already have everything in same status like I want. But I got error: vmError: Cant create pdf, createInvoiceNumber failed and I follow this steps:https://forum.virtuemart.net/index.php?topic=103490.0 so I reinstall virtuemart.

After this I have the same problem that I cannot se order done page after order confirmation. I cann see just continue is shopping.

Fortunatelly orders can be deleted.

I repeat all steps which I did before, but now it is not working. :(

 

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1721
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Continue in shopping instead of order_done
« Reply #8 on: August 12, 2018, 11:29:34 am »
You may have a plugin for creating invoice numbers? try to turn this off or maybe on or check configuration for the plugin.

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)