Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Holiday-Promotional Message Add-On BS


raiwa

Recommended Posts

New coded content module for Bootstrap.

 

This add-on is based on the idea of the older Holiday Message Add-Ons by fimble:

http://addons.oscommerce.com/info/7648

http://addons.oscommerce.com/info/6127

 

It has been complete new written for BS.

 

Easiest install: upload 2 files+language file.

Install content header module in Admin.

 

Message Header and Text can be introduced for each language in the content module set-up.

Selectable pages where to show the modue.

 

Download:

http://addons.oscommerce.com/info/9331

Edited by raiwa
Link to comment
Share on other sites

@@Hotclutch,

 

Sorry. this file was left in the package by mistake, no changes there, not needed, just ignore it :)

 

Just uploaded a new cleaned package.

Edited by raiwa
Link to comment
Share on other sites

I thought this bit of code

function execute() {
	  global $PHP_SELF, $lng, $request_type, $oscTemplate;
..
	    if (!isset($lng) || (isset($lng) && !is_object($lng))) {
		  include(DIR_WS_CLASSES . 'language.php');
		  $lng = new language;
	    }
...

stopped that problem

 

sorry the error was redeclare not redifine

Link to comment
Share on other sites

I think I solved it but would love someone who knows a whole lot more to check.

 

$lng, is missing from the global in the package so the class check was not working

or at least that is what I think the logic is.

 

I added it as per the post above and now it works.

 

Any thoughts.

Doug B)

Link to comment
Share on other sites

Hello Doug @@douglaswalker,

 

I checked again on my real store with SEO URL multilanguage support and on my standard dev store without SEO URL and couldn't recreate the error. All works ok as is.

However you are right that $lng should be better included in the global list.

 

Would be good if someone else could give feedback about this issue.

 

Thank you and kind regards

Rainer

Link to comment
Share on other sites

Hello Doug @@douglaswalker,

 

Just uploaded a new version which includes your fix. In any case it will not do any harm :)

 

Thanks and kindest regards

Rainer

Edited by raiwa
Link to comment
Share on other sites

  • 1 year later...

Hallo Rainer

Can You Check Please hier  :-) Something seams to be wrong with the Versions and the time that you have Upload the Packages 

Holiday-Promotional Message BS 1.2 -> are from Juni (old)

Version 1.1 -> are from Juli (New)

And the Data inside

if you Look at the version 1.0.zip the files are from Juli (new)

if you look at the newest version 1.2.zip the files are from Juni also Older ?

What's the newest package with the Corrections from the support thread 1.0 or 1.2 I think 1.0.zip is newer!

Edited by Pelvis
Link to comment
Share on other sites

  • 5 months later...

Hello Rainer,

 

Thank you so much for this add on. Just what I was looking for and needed.

 

I was wondering if you could direct me on how I change the background color from yellow to another color? I tried changing the code (below) in the user.css but it did not change the color so I know I am doing something wrong. Suggestions would be appreciated.

 

<div class="panel panel-info">

<div class="panel-heading">
<h3 class="panel-title">Valentine's is just around the Corner !</h3>
</div>

 

I have version 2.3.4 bs responsive.

 

Thank you in advance.

Tracie

Link to comment
Share on other sites

Hello Tracie @@sunshynecraftsbeads,

 

Hello Rainer,

 

Thank you so much for this add on. Just what I was looking for and needed.

 

I was wondering if you could direct me on how I change the background color from yellow to another color? I tried changing the code (below) in the user.css but it did not change the color so I know I am doing something wrong. Suggestions would be appreciated.

 

<div class="panel panel-info">

<div class="panel-heading">
<h3 class="panel-title">Valentine's is just around the Corner !</h3>
</div>

 

I have version 2.3.4 bs responsive.

 

Thank you in advance.

Tracie

 

As Steve already pointed out this is not a specific issue for this add-on. You should see how to style bootstrap elements.

If you overwrite the default color for panel-info it will apply to all panel-info elements.

Otherwise you could add a specific class for example "holiday-message-panel" and define a different background color for this class.

 

rgds

Rainer

Link to comment
Share on other sites

  • 1 year later...

Updated to Holiday-Promotional Message 2.0 BS:

Changes version 2.0:
- moved e-mail modifications in checkout_process.php into hook
- updated coding and file naming to Responsive 2.3.4.1 BS CE Frozen standards
- simplified language constants

 

Edited by raiwa
Link to comment
Share on other sites

  • 3 months later...

Hello Rainer @raiwa

the following code gives error in admin side: open_basedir restriction in effect

Warning: is_dir(): open_basedir restriction in effect. File(/usr/www/users/mspggy/..) is not within the allowed path(s): (/usr/www/wwws/users/mspggy:/usr/wwws/users/mspggy:/usr/www/users/mspggy:/usr/home/mspggy:/usr/local/rmagic:/usr/www/users/he/_system_:/usr/share/php:/usr/local/lib/php:/tmp:/usr/bin:/usr/local/bin:/usr/local/share/www:/usr/www/share/www:/usr/share/misc:/dev/urandom) in /usr/www/users/mspggy/includes/modules/content/header/cm_header_holiday.php on line 139

This started happening after i changed to a new server with tighter security, any possible workaround for this?

Also noticed there a couple modules with this code

    $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
    $files_array = array();
	  if ($dir = @dir(DIR_FS_CATALOG)) {
	    while ($file = $dir->read()) {
	      if (!is_dir(DIR_FS_CATALOG . $file)) {
	        if (substr($file, strrpos($file, '.')) == $file_extension) {
            $files_array[] = $file;
          }
        }
      }
      sort($files_array);
      $dir->close();
    }

 

Getting the Phoenix off the ground

Link to comment
Share on other sites

7 minutes ago, Peper said:

the following code gives error in admin side: open_basedir restriction in effect

Warning: is_dir(): open_basedir restriction in effect. File(/usr/www/users/mspggy/..) is not within the allowed path(s): (/usr/www/wwws/users/mspggy:/usr/wwws/users/mspggy:/usr/www/users/mspggy:/usr/home/mspggy:/usr/local/rmagic:/usr/www/users/he/_system_:/usr/share/php:/usr/local/lib/php:/tmp:/usr/bin:/usr/local/bin:/usr/local/share/www:/usr/www/share/www:/usr/share/misc:/dev/urandom) in /usr/www/users/mspggy/includes/modules/content/header/cm_header_holiday.php on line 139

This started happening after i changed to a new server with tighter security, any possible workaround for this?

Also noticed there a couple modules with this code

 

Hello Pierre,

This code is copied from core modules. You should "untighten" the server security settings. Anyway it's only a warning and will not show under production error settings.

Or report it in the general 2.3.4.1 BS forum. It's not a specific holiday message module issue.

rgds

Rainer

Link to comment
Share on other sites

  • 2 months later...

@raiwa I installed this add-on on php 7.2 and here was error in the  error_log  so I fixed those error and  now working well under php7.2  if you want I can share it here or send it to you.

so if you would like  include the fixing for next update

Br
Omar

Get the latest Responsive osCommerce CE (community edition) here .

Link to comment
Share on other sites

@Omar_one,

Yes, please. Just share it here and I'll include it in the next update.

Link to comment
Share on other sites

sorry @raiwa   I had old installation version 1.4 so base on that I update it (I was not noticed that you have update it to version 2.0     ).. and your last one had almost all the change what I made ..
there just one change still in includes/hooks/shop/checkout_process/holiday.php

function listen_HolidayCheckoutMailMod() {

to

function __construct() {


 

Get the latest Responsive osCommerce CE (community edition) here .

Link to comment
Share on other sites

Hello @Omar_one,

this modification is incorrect. This function is not a class constructor.

Link to comment
Share on other sites

  • 1 month later...

Hello,

 

Just installed your module but can't find where to install it in Admin>Modules.

In: Admin => Modules => click "Install Module" => select "Holiday Message [header]" => click "Install Module"

I used your included modules_content.php file.

 

TIA

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...