Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Incompatible with SH404SEF
(1 viewing) (1) Guest
Support forum for customers who have purchased this product. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Incompatible with SH404SEF

Incompatible with SH404SEF 12 years, 2 months ago #33834

It appears that the vminvoice plugin causes issues with sh404sef. if you have it enabled you will get a message when saving stuff in the component that says :


Sorry, something went wrong on the server while performing this action. Please retry or cancel

turn the plugin off and this works fine - in case that helps anyone, took me flippin hours to find the issue, would be helpful if the plugin could be made compatible please.
The topic has been locked.

Re: Incompatible with SH404SEF 12 years, 1 month ago #34565

If it's a problem on the frontend, I did this to solve it :

in ps_order.php
just after the line (657 for me) : "require_once( CLASSPATH .'pageNavigation.class.php');"

I inserted this : (to get the functions of the backend)
"require_once (JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_vminvoice' . DS . 'helpers' . DS . 'invoicehelper.php');"

and after the lines (723 to 725 for me) like :
$tmp_cell = "<strong>".$VM_LANG->_('PHPSHOP_ORDER_PRINT_PO_STATUS').":</strong> ".$order_status;
$tmp_cell .= "<br /><strong>".$VM_LANG->_('PHPSHOP_ORDER_PRINT_PO_NUMBER').":</strong> " . sprintf("%08d", $db->f("order_id"));
$listObj->addCell( $tmp_cell );

I inserted this : (because "VM Invoice" received bad Urls from "sh404", you have to rewrite them)

$orderID = $db->f("order_id");
list($newLang, $prevLang) = InvoiceHelper::setInvoiceLanguage(JRequest::getVar('invoice_language'), $orderID); //change language for proper filename
$code ='_'.$newLang;
InvoiceHelper::setLanguage($prevLang); //set back orig. language
$pathfile = InvoiceHelper::getInvoiceSubdir($orderID,false);
$filename = trim(JText::_('COM_VMINVOICE_INVOICE_'),'*') . InvoiceHelper::getInvoiceNo($orderID). $code . '.pdf';
$pdf_url = str_replace('\\','/',JURI::base().'tmp/VM Invoices/' . $pathfile . $filename);
$open_url = "javascript:void window.open('".$pdf_url."', 'win2', 'status=no,toolbar=yes,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no');";
$tmp_cell = ($db->f("order_status") == 'C' OR $db->f("order_status") == 'S') ? '<a href="'.$open_url.'"><img src="'.JURI::base().'administrator/components/com_vminvoice/assets/images/pdf.png" '.' title="'.JText::_($VM_LANG->_('PHPSHOP_ORDER_PRINT_PO_BILL')).'" /> '.' </a>' : '';
$listObj->addCell( $tmp_cell );

Hope it helps you

sorry for my english
The topic has been locked.

Re: Incompatible with SH404SEF 12 years, 1 month ago #34571

Thanks for posting this - i removed sh404sef last week as i was finding it was messing up to many things on the site and lots working better now !
cheers
The topic has been locked.

Re: Incompatible with SH404SEF 12 years, 1 month ago #34575

Did you replace sh404 by another SEO component ? Or just removed it from joomla ?
thanks
The topic has been locked.

Re: Incompatible with SH404SEF 12 years, 1 month ago #34581

I was tempted to use the Artio SEF but the support on here for this component has been useless so in the end i just removed it completely and set URL erros to go to the home page, it shouldnt take Google too long to re index my urls and will see what happens!
The topic has been locked.
  • Page:
  • 1
User Login Empty