Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Products Info


Guest

Recommended Posts

  • 1 year later...

I would go in that way: make a copy of tell_a_friend.php to be a "module", place it to the /includes/ folder, change the styling and then include it to product_info.php in any place you want

 

 

multimixer can you give a few more details ?

 

copy of tell_a_friend.php (from catalog ?)

be a "module" ( how to make it a module ?)

place it to the /includes/ folder (in witch folder ?, right to the includes file you mean? )

change the styling (what do you mean by that ?)

include it to product_info.php (an example of that please ?)

 

sorry but my experience in os is limited

 

Thank you

ngos

Link to comment
Share on other sites

  • 1 month later...

1) copy of tell_a_friend.php (from catalog ?)

2) be a "module" ( how to make it a module ?)

3) place it to the /includes/ folder (in witch folder ?, right to the includes file you mean? )

4) change the styling (what do you mean by that ?)

5) include it to product_info.php (an example of that please ?)

 

Γεια σου Nick

 

1) Yes, the one from catalog

2) Take out any reference to application_top.php, template_top.php etc. Keep only the necessary stuff for the action you need to be done => send an email to somebody (store owner) that will contain the product id (and name or any other detail you need) + comments.

3) You can basically copy it into any foldr you like, for matters of general consistency I would say that includes/modules/ would be a good place

4) The module will be displayed inside a page, so, regarding markup it doesn't need much. You can take a look at the new products module, in relation to the new products file, to see how each one look like. The concrete setup depends on how you want to integrate it into the product_info.php file

5) I'm sorry, but I can not give you a concrete example, but it would look like his

    include(DIR_WS_MODULES . 'my_new_module.php');

 

If you get confused by the whole module thing, you can alternatively create a mail form within the product info file, you just need to take care (same also for the module case) not to nest forms, that mean you need to close first the product info form and start then the mail (tell a friend) form. The suggestion to take the code from tell a friend was just to make things easier, in real it's just a simple mail form, that's all

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...