Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search the Community

Showing results for tags 'modify'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News and Announcements
    • News and Announcements
  • osCommerce v4.x
    • General Support
    • Migration from old osCommerce
    • Design and Templates
    • Apps / Add-ons
    • Translations
    • API and import/export
    • Marketplace integration
    • Manuals and How-to
    • Blog's discussion
  • osCommerce Online Merchant v2.x
    • General Support
    • osCommerce Online Merchant Community Bootstrap Edition
    • Add-Ons
  • Development
  • General
    • General Discussions
    • Live Shop Reviews
    • Security
    • Commercial Support Inquiries
    • Developer Feedback

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Real Name


Location


Interests


Website

Found 1 result

  1. If we want to have content easy to modify on pages or page with option to turning off, we can use Content Module system for it and call only One of the box which we want and print it in our Template where we want. We can do through this steps: Create new directory: includes/modules/content/everywhere/ In template_top.php Before or just after: Add: if ($oscTemplate->hasContent('everywhere')) { $oscTemplate->getContent('everywhere'); } In osc_template.php Add (before getContent method) function getOneContent($title){ return $this->_content['everywhere'][$title]; } Modify: function addContent($content, $group, $contentname = false) { if($contentname){ $this->_content[$group][$contentname] = $content; }else{ $this->_content[$group][] = $content; } } And when you creating new module content in execute funtion do it like that: $oscTemplate->addContent($template, $this->group, $this->title); After all of this it's possible to print content where we want like that: echo $oscTemplate->getOneContent('Custom info');
×
×
  • Create New...