Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi,

 

Firstly thanks for all the people contributed on this addons.

 

I deployed the Dynamic Template System on my store and I found something couldn't be implementing.

 

I disable a box to display on index.php, but the box will not display on the pages of index.php?cPath=1,index.php?cPath=2,index.php?cPath=3 and etc.

 

I tried to deploy some codes to generate the all pages which contains cPath in the /admin/includes/functions/general.php and appended the pages for selection in the backend module box.

 

When I select the page which generated by codes and it didn't work.

 

Should I modify the following codes in osc_template.php to implement what I need? But the pages is in every box and index.php?cPath=1 doesn't contain pages.

 

// bof Dynamic Template System
              if(!isset($mb->pages) && ($mb->isEnabled())){
                $this->pages = 'all';             
                $mb->execute();             
                }else{             
              if(($mb->isEnabled()) && (($mb->pages === 'all') || (in_array($PHP_SELF , explode(';' , $mb->pages))))){
                $mb->execute();
                }
              }
              // eof Dynamic Template System

 

Anyone has idea to do it?

 

chuntse

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...