![]() ![]() |
Jun 8 2012, 10:24 AM
Post
#21
|
|
|
Advanced User ![]() ![]() ![]() ![]() Group: Advanced Member Posts: 218 Joined: 15-April 11 Member No.: 761 |
You also mentioned making changes in the language file. I assume the language file controls the output of the orders. If this is the case, I just need an example of the appropriate syntax, and I will be able to resolve the problem myself. Thanks in advance for your help. Jake The words in capital letters in the header are the relevant language parameters. These have to be defined in your language files, e.g.: header: CURRENCY=select:EUR,USD,JPY,CHF Language parameters in the language file: CURRENCY="Preferred currency:" EUR="Euro" USD="US Dollar" JPY="Japan Yen" CHF="Swiss Frank" |
|
|
|
Jun 28 2012, 09:42 PM
Post
#22
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 28-June 12 Member No.: 1,250 |
Solved))
This post has been edited by dorosh: Jun 28 2012, 10:19 PM |
|
|
|
Sep 8 2012, 10:41 AM
Post
#23
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 7-September 12 Member No.: 1,341 |
I 'm using mail order in a article:
{mailorder formtpl=default buy=1 id=91} I have a article with ID 91: /index.php?option=com_content&view=article&layout=edit&id=91 however as soon as I put ANY NUMBER for the Id Parameter I will get the following error when loading the article containing {mailorder formtpl=default buy=1 id=91}: Fatal error: Call to a member function get() on a non-object in /components/com_content/views/article/view.html.php on line 142 As I understood one can call the function mail form with several Id's that are referring to other Joomla articles. I'm I missing something? I'm using the Pro Version 2.0 (July 2012) on Joomla! 2.5.6 |
|
|
|
Sep 8 2012, 10:43 AM
Post
#24
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 7-September 12 Member No.: 1,341 |
I 'm using mail order in a article: {mailorder formtpl=default buy=1 id=91} I have a article with ID 91: /index.php?option=com_content&view=article&layout=edit&id=91 however as soon as I put ANY NUMBER for the Id Parameter I will get the following error when loading the article containing {mailorder formtpl=default buy=1 id=91}: Fatal error: Call to a member function get() on a non-object in /components/com_content/views/article/view.html.php on line 142 As I understood one can call the function mail form with several Id's that are referring to other Joomla articles. I'm I missing something? I'm using the Pro Version 2.0 (July 2012) on Joomla! 2.5.6 |
|
|
|
Sep 10 2012, 11:09 AM
Post
#25
|
|
|
Advanced User ![]() ![]() ![]() ![]() Group: Advanced Member Posts: 218 Joined: 15-April 11 Member No.: 761 |
I 'm using mail order in a article: {mailorder formtpl=default buy=1 id=91} I have a article with ID 91: /index.php?option=com_content&view=article&layout=edit&id=91 however as soon as I put ANY NUMBER for the Id Parameter I will get the following error when loading the article containing {mailorder formtpl=default buy=1 id=91}: Fatal error: Call to a member function get() on a non-object in /components/com_content/views/article/view.html.php on line 142 As I understood one can call the function mail form with several Id's that are referring to other Joomla articles. I'm I missing something? I'm using the Pro Version 2.0 (July 2012) on Joomla! 2.5.6 Hello, Littleplace. It was a bug in the content plugin. To fix it please either download the latest version or do the following: Open /plugins/content/mailorder/mailorder.php Lines 91 to 108 should be: Код if($pars->id) { switch ($this->producttype) { case 'com_k2': $this->db->setQuery("SELECT id, catid FROM #__k2_items WHERE id=".(int)$pars->id.' LIMIT 1'); $row = $this->db->loadObject(); break; case 'com_content': $this->db->setQuery("SELECT id, catid FROM #__content WHERE id=".(int)$pars->id.' LIMIT 1'); $row = $this->db->loadObject(); break; default: } if (empty($row)) { $row->text = mb_substr($row->text, 0, $pos).mb_substr($row->text, $endpos+1); continue; } } $url = 'index.php?option=com_mailorder&tmpl=component&producttype='.$this->producttype.'&productid='.$row->id.'&catid='.$row->catid.'&formtpl='.$pars->formtpl.'&t='.time(); Change them to: Код if($pars->id) { switch ($this->producttype) { case 'com_k2': $this->db->setQuery("SELECT id, catid FROM #__k2_items WHERE id=".(int)$pars->id.' LIMIT 1'); $dbrow = $this->db->loadObject(); break; case 'com_content': $this->db->setQuery("SELECT id, catid FROM #__content WHERE id=".(int)$pars->id.' LIMIT 1'); $dbrow = $this->db->loadObject(); break; default: } if (empty($dbrow)) { $row->text = mb_substr($row->text, 0, $pos).mb_substr($row->text, $endpos+1); continue; } } else $dbrow = $row; $url = 'index.php?option=com_mailorder&tmpl=component&producttype='.$this->producttype.'&productid='.$dbrow->id.'&catid='.$dbrow->catid.'&formtpl='.$pars->formtpl.'&t='.time(); This fix is added to latest version for Joomla 2.5 - v.2.2. |
|
|
|
Sep 10 2012, 04:54 PM
Post
#26
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 7-September 12 Member No.: 1,341 |
Thank you. I appreciate your help. It worked.
|
|
|
|
Oct 8 2012, 07:40 PM
Post
#27
|
|
|
Newbie ![]() Group: Members Posts: 2 Joined: 8-October 12 Member No.: 1,381 |
Hello,
I'm using Joomla 2.5.7 with VirtueMart 2.0.10 and mail-order-pro-v.2.2-joomla-2.5 I tried this syntaxis {mailorder} {mailorder formtpl=default id=5} {mailorder formtpl=default} where 5 is my virtuemart product ID I'm copied this code to virtuemart template templates/jbrasa/html/com_virtuemart/productdetails/default.php I tried to change this line: plugins\content\mailorder\mailorder.php on line 122 but this doesn't affect help me Sorry my English |
|
|
|
Oct 9 2012, 07:00 AM
Post
#28
|
|
|
Advanced User ![]() ![]() ![]() ![]() Group: Advanced Member Posts: 218 Joined: 15-April 11 Member No.: 761 |
Hi, Nicolai!
The problem is, that the current version of MailOrder does not work with VirtueMart 2.0... I will fix this promptly and will post the solution here. |
|
|
|
Oct 9 2012, 08:02 AM
Post
#29
|
|
|
Advanced User ![]() ![]() ![]() ![]() Group: Advanced Member Posts: 218 Joined: 15-April 11 Member No.: 761 |
Hi, Nicolai! The problem is, that the current version of MailOrder does not work with VirtueMart 2.0... I will fix this promptly and will post the solution here. Here we go: 1. Open /components/com_mailorder/views/mailorder/view.html.php. On lines 53-57 there should be: Код case 'com_virtuemart': $database->setQuery('SELECT product_name, product_sku FROM #__virtuemart_products WHERE virtuemart_product_id = '.$data->id); if ($result = $database->loadObject()) $data->product = $result->product_name.' ['.$result->product_sku.']'; break; Replace with: Код case 'com_virtuemart': $database->setQuery("SELECT manifest_cache FROM `#__extensions` WHERE element='com_virtuemart' AND type='component'"); if ($manifest_cache = $database->loadResult()) { $manifest_cache = json_decode($manifest_cache); $vm_ver = explode('.', $manifest_cache->version); switch($vm_ver[0]) { case '1': $database->setQuery('SELECT product_name, product_sku FROM #__virtuemart_products WHERE virtuemart_product_id = '.$data->id); break; case '2': $vm_lang_tag = str_replace('-', '_', strtolower(JFactory::getLanguage()->getTag())); if ('en_gb' != $vm_lang_tag) { $database->setQuery("SHOW TABLES LIKE '#__virtuemart_products_$vm_lang_tag'"); if (!$database->loadResult()) $vm_lang_tag = 'en_gb'; } $database->setQuery('SELECT vp.product_sku, vpl.product_name FROM #__virtuemart_products vp LEFT JOIN #__virtuemart_products_'.$vm_lang_tag.' vpl USING(virtuemart_product_id) WHERE vp.virtuemart_product_id='.$data->id); break; } if ($result = $database->loadObject()) $data->product = $result->product_name.' ['.$result->product_sku.']'; } break; The updated version will be available for download in few hours. |
|
|
|
Oct 9 2012, 08:19 AM
Post
#30
|
|
|
Newbie ![]() Group: Members Posts: 2 Joined: 8-October 12 Member No.: 1,381 |
in my case I changed this line
CODE $vm_lang_tag = 'en_gb'; because it does not work to CODE $vm_lang_tag = 'es_es'; now it works thanks This post has been edited by Nicolai: Oct 9 2012, 08:20 AM |
|
|
|
![]() ![]() |
Similar Topics
| Topic | Replies | Topic Starter | Views | Last Action | |
|---|---|---|---|---|---|
![]() |
Mailorder In Costum Module | 1 | Robert Johansson | 58,537 | 2nd July 2018 - 06:46 AM Last post by: Web Design Seo |
![]() |
Mailorder Pro Plugin Blank Form In Internet Explorer 9 mailorder pro plugin blank form in internet explorer 9 |
3 | rajinfosys | 59,590 | 27th February 2017 - 10:25 AM Last post by: Web Design Seo |
![]() |
Questions About Mailorder Email | 1 | n-b | 26,275 | 14th July 2015 - 07:31 AM Last post by: Web Design Seo |
![]() |
Pinned: order by email, custom order forms component |
27 | Web Design Seo | 159,674 | 12th May 2015 - 07:33 AM Last post by: Web Design Seo |
![]() |
Support Questions For Sports Predictions Post here Support Questions for Sports Predictions component |
103 | toks | 205,987 | 4th June 2014 - 02:24 PM Last post by: Mei3am |
![]() |
Mail Order Pro Not Working | 3 | rogy | 12,668 | 24th January 2014 - 09:51 AM Last post by: pavelKukov |
![]() |
Mail Order Pro Not Working | 3 | rogy | 16,868 | 7th January 2014 - 10:54 AM Last post by: rogy |
![]() |
Mailorder's Custom Product Name i try to change mailorder's product name with given parameter like |
1 | Palindrom | 18,289 | 11th November 2013 - 02:09 PM Last post by: pavelKukov |
![]() |
Problem Downloading The Trial Version | 1 | maupap | 37,778 | 23rd October 2013 - 07:42 AM Last post by: Web Design Seo |
![]() |
Problems With Post By Email Component | 5 | alex.mendez | 76,849 | 15th October 2013 - 06:03 AM Last post by: Web Design Seo |
|
Lo-Fi Version | Time is now: 1st June 2026 - 11:12 PM |