Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: IOS Reservations online hotel booking system for Elxis CMS.
 
Pages: [1]
  Print  
Author Topic: Eforms & Eshop (SOLVED)  (Read 1996 times)
sophocles
Newbie
*
Offline Offline

Posts: 45


« on: September 20, 2012, 17:21:29 »

Hi,

I tried to enter into an eshop product the eform "tag" --> {eforms}samplecontact{/eforms}, but the bot does not come alive.
When i enter the same line into a content item of the elxis web site, the form is there as it had to.

Does anyone knows what is needed for an eform to function within an eshop product?

Thanks in advance
« Last Edit: September 26, 2012, 19:33:54 by cryonics2003 » Logged
sophocles
Newbie
*
Offline Offline

Posts: 45


« Reply #1 on: September 21, 2012, 15:18:51 »

Just found that there is an option that enables the "bots" in eshop and everything is OK.
Logged
webgift
Elxis Team
Hero Member
*****
Offline Offline

Posts: 3293



WWW
« Reply #2 on: September 21, 2012, 15:22:23 »

 Smiley I have already started replying to you. Great!
Logged

sophocles
Newbie
*
Offline Offline

Posts: 45


« Reply #3 on: September 21, 2012, 18:19:01 »

Then it was your reply that sparked me in order to find it  Wink
Thanks.
Logged
webgift
Elxis Team
Hero Member
*****
Offline Offline

Posts: 3293



WWW
« Reply #4 on: September 21, 2012, 20:48:26 »

 Smiley Smiley Wink
Logged

sophocles
Newbie
*
Offline Offline

Posts: 45


« Reply #5 on: September 26, 2012, 11:06:11 »

I have installed my eform inside an eshop product, and everything looks fine until i submit it.
I get a 404 error and no messages are being send.
When i enter the same form inside a content item of the elxis site (not an eshop product) everything works fine; e-mail is send to company's email address, a copy to the sender as well as the confirmation that it was successful.

Any idea of where is the problem?
Logged
datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7682



WWW
« Reply #6 on: September 26, 2012, 13:23:13 »

eForm has been developed for usage in content items.
You need to modify the form's action in order to work of IOS Eshop products.
Logged

sophocles
Newbie
*
Offline Offline

Posts: 45


« Reply #7 on: September 26, 2012, 13:55:25 »

I see, Any hint on the type of modification?
Logged
datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7682



WWW
« Reply #8 on: September 26, 2012, 16:54:51 »

Open file mambots/content/eforms.php
Go to line 175
change this:
global $Itemid, $mainframe;

if ($aurl == 1) {
   return sefRelToAbs('index.php?option=com_content&task=view&id='.$this->articleid.'&Itemid='.$Itemid);
} else {
   if ($mainframe->getCfg('sef') == 2) {
      return sefRelToAbs('index.php?option=com_content&task=view&id='.$this->articleid.'&Itemid='.$Itemid);
   } else {
      return 'index.php';
   }
}


to this:
global $Itemid, $mainframe, $option;

if ($option == 'com_eshop') {
   $link = sefRelToAbs('index.php?option=com_eshop&task=view&id='.$this->articleid.'&Itemid='.$Itemid);
} else {
   $link = sefRelToAbs('index.php?option=com_content&task=view&id='.$this->articleid.'&Itemid='.$Itemid);
}

if ($mainframe->getCfg('sef') <> 2) { $link = $mainframe->getCfg('live_site').'/'.$link; }
return $link;
}
Logged

sophocles
Newbie
*
Offline Offline

Posts: 45


« Reply #9 on: September 26, 2012, 19:35:18 »

If only you had a cent for every "thanks" you've received....

Thank you. Shocked
Logged
datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7682



WWW
« Reply #10 on: September 28, 2012, 08:47:41 »

My cents are the satisfaction I feel for happy users Wink
Logged

Pages: [1]
  Print  
 
Jump to: