Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Specials Module


Guest

Recommended Posts

Sure do, have done it on my Diecast and Plastic models store.

 

Its not easy, but they way i did it was....

 

1) Open /includes/boxes/specials.php and copy the code from it into a new page.

2) Save new page as mainspecials.php in /includes/modules/

3) Open your index.php and create a call to your new page by doing...

 

<?php
include(DIR_WS_MODULES . FILENAME_MODULE_MAINSPECIALS);
?>

 

4) Edit mainspecials.php to get the look and layout of the module how you want it.

 

I obviously dont know how good you are at coding, but you will have to play around a fair bit to get it looking how you want, i literally deleted all the infobox lines and just echo'd out the variables from the sql statement in my layout.

 

You could also look at specials.php on the root of your store and create mainspecials.php from that, do which ever you find easier.

 

Also, please note there may be a better way of doing the above but thats how i hacked it together short on time :)

Link to comment
Share on other sites

Sure do, have done it on my Diecast and Plastic models store.

 

Its not easy, but they way i did it was....

 

1) Open /includes/boxes/specials.php and copy the code from it into a new page.

2) Save new page as mainspecials.php in /includes/modules/

3) Open your index.php and create a call to your new page by doing...

 

<?php
include(DIR_WS_MODULES . FILENAME_MODULE_MAINSPECIALS);
?>

 

4) Edit mainspecials.php to get the look and layout of the module how you want it.

 

I obviously dont know how good you are at coding, but you will have to play around a fair bit to get it looking how you want, i literally deleted all the infobox lines and just echo'd out the variables from the sql statement in my layout.

 

You could also look at specials.php on the root of your store and create mainspecials.php from that, do which ever you find easier.

 

Also, please note there may be a better way of doing the above but thats how i hacked it together short on time :)

 

 

 

Do I call mainspecials from the English Index file or is is part of the main index.php?

Like the site. What did you use to plug worldpay into the site?

 

tnx

Link to comment
Share on other sites

Do I call mainspecials from the English Index file or is is part of the main index.php?

Like the site. What did you use to plug worldpay into the site?

 

tnx

 

The include call needs to be put in the main index.php file where you want the specials module to appear.

 

As for world pay, use this contrib... Worldpay v4

 

Good luck

Link to comment
Share on other sites

Anychance you could send me or let me have a look at your mainspecials file?

 

im havin no luck. Ideally I just want to have maybe 4 specials in total which are sat in the middle of the homepage and possibly within a table.

 

As with your site the description and price/saving displayed next to each.

 

So... if I have a mainspecials file, add an 'include' to index.php and a 'define' to filenames.php.......it should all work?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...