VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: chbrandt on August 30, 2016, 00:34:27 AM

Title: Bad link in invoice
Post by: chbrandt on August 30, 2016, 00:34:27 AM
Hello--

I'm having some issues with a link in my invoice. I ran a test order and when I received the customer invoice, it had a link to the product then was purchased.  When I clicked on that link, it opened a product page embedded within the modules that I have selected for my main home page of the website.  I asked a technical support person who made the template and they indicated that it's because the page linked from the invoice is not included in a menu, so the home page is selected by default by Joomla.  The order confirmation worked fine, displaying the menu headers and footers that I want with the content in-between, but this invoice link looks very strange.  Here is how it opens from the invoice:

http://bit.ly/2bwB4gA

I have checked to make sure that the modules included on that page are not assigned to any pages other than the home page, but they are still showing up here.  Any ideas on how to fix this? I didn't like the idea of not sending an invoice at all, as this seems to not send a confirmation email upon purchase, and that's not a good idea for us.

Thanks

Title: Re: Bad link in invoice
Post by: GJC Web Design on August 30, 2016, 11:54:46 AM
what menu has Itemid=713 ? the home page?

for debug and testing switch off SEF so u can see whats going on
Title: Re: Bad link in invoice
Post by: jenkinhill on August 30, 2016, 11:59:02 AM
http://forum.virtuemart.net/index.php?topic=79799.0

Is your "Store" menu link set to VirtueMart Front Page?
Title: Re: Bad link in invoice
Post by: chbrandt on August 31, 2016, 01:09:18 AM
Sorry.

Joomla Version: Joomla! 3.4.3 Stable
Joomla Platform Version: Joomla Platform 13.1.0 Stable
PHP Version: 5.3.29
VirtueMart Version: VirtueMart 3.0.9

My home menu item is ID 101. I've attached a screen shot of my VirtueMart 'Store' menu item.  Any help is greatly appreciated.  Thanks
Title: Re: Bad link in invoice
Post by: GJC Web Design on August 31, 2016, 13:08:33 PM
why are u using out of date and unsafe versions?

Joomla Version: Joomla! 3.4.3 Stable -> J3.6.2

VirtueMart Version: VirtueMart 3.0.9 -> VM3.0.16
Title: Re: Bad link in invoice
Post by: chbrandt on September 01, 2016, 01:49:50 AM
I can talk to those who are in charge of the versioning but I don't think that's related to the problem we're having.  Any ideas on how to fix the issue we're having without completely disabling the invoice and the associated email that goes out with it?

Thanks
Chris
Title: Re: Bad link in invoice
Post by: GJC Web Design on September 01, 2016, 10:53:56 AM
Well, as your VM is now 7 stable releases old that's where i would start...

and again

Quotewhat menu has Itemid=713 ?
Title: Re: Bad link in invoice
Post by: chbrandt on September 02, 2016, 05:08:23 AM
Hi--

Maybe I'm looking in all the wrong places, but I can't find ANY menu with an Itemid=713.  :( 

I'm also working on getting it updated. Thank you!

Chris
Title: Re: Bad link in invoice
Post by: GJC Web Design on September 02, 2016, 11:55:18 AM
but thats what Joomla is detecting as the VM itemid

index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=27&virtuemart_product_id=136&Itemid=713

check trashed etc menus

switch off sef while trying to debug this
Title: Re: Bad link in invoice
Post by: chbrandt on September 05, 2016, 20:05:20 PM
I went to Menus > All Menu Items and sorted by ID and there's nothing for 713.  I also filtered on Trashed, nothing.  I just want the invoice link to work similar to the page immediately following a successful order, where it shows the menu, header and footer, and not the entire homepage and I'm not sure what else to try.

Chris
Title: Re: Bad link in invoice
Post by: GJC Web Design on September 05, 2016, 20:14:39 PM
but the fact is the url u are showing as as being sent in the invoice is http://askc.org/galacticos/index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=27&virtuemart_product_id=136&Itemid=713

so Itemid=713 is the problem

with sef on we have no idea what the actual itemids are .. e.g.  http://askc.org/galacticos/index.php/shop

if u use that Itemid on the prod detail are the correct modules shown?
Title: Re: Bad link in invoice
Post by: chbrandt on September 07, 2016, 00:55:44 AM
Alright, I've switched SEF off and had Joomla and VM updated to the current versions.  Now, not only is the invoice link using the modules for the home page, but so is the cart when you use the Show Cart link after adding an item to the cart.  Also, if you click the Cart widget at the top of any page OTHER than the store and click Show Cart, it shows the page with the wrong modules.  Our tech support with the company that made the template helped us get the store installed initially and I'm wondering if something didn't get messed up during the process. 

This link is how it should look:  http://askc.org/galacticos/index.php?option=com_virtuemart&view=cart&Itemid=408

This is what you get on some pages when clicking Cart:  http://askc.org/galacticos/index.php?option=com_virtuemart&view=cart

Sorry for so many replies trying to get this worked out.

Chris
Title: Re: Bad link in invoice
Post by: GJC Web Design on September 07, 2016, 10:48:37 AM
switching of SEF was an aid to troubleshoot why the invoice has Itemid=713 on prod details as you say this doesn't exist

why are you now talking about the cart etc?

this needs some proper investigation of the files if u say Itemid=713 doesn't exist
Title: Re: Bad link in invoice
Post by: chbrandt on September 07, 2016, 17:22:38 PM
I brought up the cart because, after updating per suggestions here, my initial problem with the invoice link (modules showing that I don't want showing) has now also been extended to the cart.  I am by no means an advanced Joomla or Virtuemart user but I don't know what's happened or why this is so difficult.  Unfortunately I'm not sure I have any other option than to scrap the store from the site until I can find another solution since we can't launch with these issues and I clearly can't fix them.  I appreciate the assistance.

Chris
Title: Re: Bad link in invoice
Post by: GJC Web Design on September 07, 2016, 18:02:14 PM
wouldn't it be far easier to employ someone who knows what they are doing?  Do you also fix the washing machine, car, TV and do a bit of medical work on the kids as well?..   ;)

There is ONLY a problem with the invoice link and that needs investigating where the wrong Itemid comes from.. this is unique to your site.. no one else has this problem
Title: Re: Bad link in invoice
Post by: Milbo on September 09, 2016, 09:23:55 AM
Quote from: GJC Web Design on September 02, 2016, 11:55:18 AM
check trashed etc menus

switch off sef while trying to debug this
The right way to go