Author Topic: product enquiry modification (Ask seller info about current product)  (Read 95988 times)

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
Re: product enquiry modification (Ask seller info about current product)
« Reply #45 on: June 17, 2007, 13:42:05 pm »
You haven't followed the instructions on the first page of this thread!

Quote
n virtuemart, click on admin and then modules, list modules. Locate the module named SHOP to the right of this under functions click on LIST. Here you will find a list of functions related to the shop. Click on NEW to add a new function.
Enter these Details:

Function Name:     productAsk
Class Name:              ps_ask
Class Method:             mail_question
Function Perms:         admin,storeadmin,shopper,demo
Function Description:  Enquiry form modification

This sets up the function to work within virtuemart.

This has to be done to tell VM which function to use. The error states that the function doesn't exist so the above has not been done.

Mark

Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.

Lain_

  • Jr. Member
  • **
  • Posts: 92
Re: product enquiry modification (Ask seller info
« Reply #46 on: June 18, 2007, 03:01:31 am »
Quote
This has to be done to tell VM which function to use. The error states that the function doesn't exist so the above has not been done.

Actually, I did perform that task as the first thing I did before uploading the files. As per another post I read one problem I found is that the zip file puts ps_ask in the wrong directory, should be (classes) not (class). But anyway, I was quick to fix that problem.

Here is how I set up the module.



No matter how I configure it it still gives the same error.  :-\

I want a mod like this, but I have to say I really don't like the page refresh. Is there some way to tie into how the product review system knows what product your reviewing and make it a seem less function? It would just load as a function of the page creation.

If not, I will continue to use my Fabrik form project I am working with. Thanks again for your commitment to this project.
...........Of all the places I have ever been, Earth has the best popcorn.

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
Re: product enquiry modification (Ask seller info about current product)
« Reply #47 on: June 18, 2007, 04:48:39 am »
You have set up a module not a function!

If you read my quote from the previous post it tells you exactly how to set up the function.

The screen will look like this, the function is added to the shop module.





[attachment cleanup by admin]
Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.

Bill

  • Jr. Member
  • **
  • Posts: 251
    • Lemco Seals, Inc.
Re: product enquiry modification (Ask seller info about current product)
« Reply #48 on: June 18, 2007, 19:11:46 pm »
Hello,

I wasn't aware of this thread and I asked Marg Davison (who was the original author of Ask a Question) to help me with this.  The attached "ask_seller.zip" has the files and instructions for installing it.  It varies a little from Mark's mod, so I thought you might find it helpful.

All credit goes to Mark Callf and Marg Davison.

Bill

[attachment cleanup by admin]

Bill

  • Jr. Member
  • **
  • Posts: 251
    • Lemco Seals, Inc.
Re: product enquiry modification (Ask seller info about current product)
« Reply #49 on: June 18, 2007, 20:12:38 pm »
I forgot to mention in the instructions included in the ask_seller.zip above that I made a style on my flypage.php file for the title on the ask page.  It calls for this style in the shop.ask.php file.  Add this to the top of flypage.php:

<style type="text/css">
<!--
.style5 {
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 15px;
   font-weight: bold;
   color: #003366;
}
-->
</style>

Lain_

  • Jr. Member
  • **
  • Posts: 92
Re: product enquiry modification (Ask seller info about current product)
« Reply #50 on: June 28, 2007, 15:07:41 pm »
Quote from: Mark
You have set up a module not a function!

Indeed, You are correct, I was not aware that Modules had a "2nd level" of configuration and so it was a bit confusing. Now I have learned some more about how Virtuemart works at a developer level.

I have it working now, but still wish it was a "smoother" operation.  :-\

My product flypage uses several mambots, and when you click the "request form" it reformats the flypage and all the {mambot_code} is shown on the form page. Its not very clean. (picture below)

It possible to have the form pop-up as a new window? Like the manufacturer popup...that I dont use.
Or have it be part of the flypage so it does not have to refresh to load the feature. I use a slider_mod to keep the product review form closed as a screen shot showed in one of my earlier postings.

I would be willing to pay for thit modification if its a fairly easy one for you to do.

Other wise I like it much better then the one I made using Fabrik....although the Fabrik one keeps those requests stored on my Fabrik interface so I can keep a log of product requests. Handy if the email does not come through properly.

Oh...and one more thing. If I want to replace the text link "request form" with a button "picture" where would I find that code  ??? I looked for about an hour but was confused as to what to edit.

Thanks again Mark for all your contributions.

[attachment cleanup by admin]
...........Of all the places I have ever been, Earth has the best popcorn.

tom

  • Beginner
  • *
  • Posts: 1
Re: product enquiry modification (Ask seller info
« Reply #51 on: July 17, 2007, 21:44:51 pm »
hello folks
is there a way to enable this "request more info" only on selected items.

nsw

  • Beginner
  • *
  • Posts: 46
    • Management Consultant
Re: product enquiry modification (Ask seller info about current product)
« Reply #52 on: August 12, 2007, 17:37:58 pm »
hmm, i seem to have something wrong

i created the VM function as requested - see screen shot
moded flypage to include {ask_seller}
uploaded new classes and html files

just echos out on page ?
any ideas

[attachment cleanup by admin]

nsw

  • Beginner
  • *
  • Posts: 46
    • Management Consultant
Re: product enquiry modification (Ask seller info about current product)
« Reply #53 on: August 12, 2007, 17:56:56 pm »
sorry, my fault - forgot to mod shop.product_details.php
working just fine now

nsw

  • Beginner
  • *
  • Posts: 46
    • Management Consultant
Re: product enquiry modification (Ask seller info about current product)
« Reply #54 on: August 14, 2007, 09:46:10 am »
to avoid the lighbox tag {tag} echoing out onto the page make sure you call the virtuemart mambot code plugin before the template echo command in shop.ask.php

before

Code: [Select]
/* Finish and Print out the Page */
echo $template;

you need

Code: [Select]
// calls plugin code
global $_MAMBOTS;$_MAMBOTS->loadBotGroup( 'content' );$tmp_row = new stdClass();$tmp_params = new mosParameters('');$tmp_row->text = $template;$_MAMBOTS->trigger( 'onPrepareContent', array( &$tmp_row, &$tmp_params ), true );$template = $tmp_row->text;


make sure mambot is installed

 :)

jacksonbeale

  • Beginner
  • *
  • Posts: 1
Re: product enquiry modification (Ask seller info about current product)
« Reply #55 on: October 28, 2007, 21:01:17 pm »
Hi All,

Sounds like a great mod. Can anyone provide me with a working example? I assume that this sends an enquiry on a specific / series of specific products?

Jackson

MAD King

  • Jr. Member
  • **
  • Posts: 331
  • VirtueMart Version: Latest
Re: product enquiry modification (Ask seller info about current product)
« Reply #56 on: November 05, 2007, 10:15:35 am »
macallf, I putted your great module in the new version of Virtuemart. I do have a question about a feature. Is it posible to let a pop up window open with the request form?

Right now I do get the form at the bottom of the articles and if a description is very long you would not see this form.

Thank you

kessels1234

  • Jr. Member
  • **
  • Posts: 208
Re: product enquiry modification (Ask seller info about current product)
« Reply #57 on: March 18, 2008, 23:29:29 pm »
Hi,

does anybody have an answer to this?

I used the lightbox mod from Macallf and now in the inquirymod there is no picture. What to do to get a picture there?

Thanks in advance
Danny

Hermes

  • Jr. Member
  • **
  • Posts: 73
    • Antimatter-Studios
Re: product enquiry modification (Ask seller info about current product)
« Reply #58 on: March 22, 2008, 15:20:30 pm »
Thank you very much for that great mod!

It's working for me in Joomla 1.0.13 eCommerce edition.

Greetings!!

emicoma

  • Beginner
  • *
  • Posts: 15
Re: product enquiry modification (Ask seller info about current product)
« Reply #59 on: March 24, 2009, 04:30:51 am »
Hi,

I try to send this product enquiry form directly to the manufacturer or the product vendor.
I looked at all files concerned but cannot see where the destination email is stored.
It looked to be set in ps.communication but I am a bit lost.
All idea will be welcome.
I use jommla 1.5.9 and last vm version but I guess you will have idea on the subject.
thanks !