Jump to content
ajaxthemestudios

[Free Theme] ATS Basic Prestashop 1.7 Free Theme

Recommended Posts

ATS Basic Prestashop theme is a multipurpose, responsive and free Prestashop 1.7 theme suitable for all kinds of products. The theme has a clean, light and professional design. It is built using the UIkit framework. UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.  We have carefully integrated this framework with Prestashop to deliver a clean, fast, responsive and aesthetic theme that would give your online store a very simple yet professional appearance.

 

Homepage 

ss-7.thumb.jpg.91087050d2c616d2008aff2d2e0da3f0.jpg

 

Simple and Clean Product List Display

preview-1.thumb.jpg.e854197adeb1ea8ac159bf6d4946bdbd.jpg

 

Extended Top Menu

ss-3.thumb.png.ae4054f6f3f79e60f68ed0525eaa6043.png

 

Beautiful Modal Boxes

ss-1.thumb.jpg.cbcfe672ac8098f169edc40423617781.jpg

 

Clean and minimal product page design

ss-2.thumb.jpg.3219de1d60caa9790121cea93e08a1db.jpg

 

LIve Preview of Template Here - http://demo.ajaxthemestudios.com/

Quickstart installation (e.g. Replicate the demo with installation of Prestashop + Theme package) is available on request. 

DOWNLOAD THE THEME:

Version 1.0 - atsbasictheme.zip

Version 1.1.0 (latest) - ajaxbasictheme-v1.1.0.zip

More information about the theme is available HERE

 

UPDATE NOTIFICATION - 19th MAY 2018 

We have updated the theme to version 1.1.0. We fixed a few bugs and made a slight design change to the product page. We have also repackaged the theme.

To install new version, please unzipped the new downloaded package, There is a folder name "module" and the theme package - ajaxbasictheme.zip.

FIRST install the two modules inside the module folder before installing the theme to avoid missing module problem.

Thank you

 

Edited by ajaxthemestudios
Fix incomplete file (see edit history)
  • Sad 1

Share this post


Link to post
Share on other sites

Hi.

I have been able to make this theme work.

It gave an error when trying to install 2 duplicate modules for not having the necessary permissions.

I have eliminated them and made a correction so that everything framing and finally is working well.

It is very optimized and looks very good.

Thank you very much: D

atsbasic.png

Share this post


Link to post
Share on other sites
On 3/24/2018 at 9:20 AM, freiserk said:

Hi.

I have been able to make this theme work.

It gave an error when trying to install 2 duplicate modules for not having the necessary permissions.

I have eliminated them and made a correction so that everything framing and finally is working well.

It is very optimized and looks very good.

Thank you very much: D

atsbasic.png

 

Glad to see that it worked! Happy selling!

Share this post


Link to post
Share on other sites

Warning en línea 340 en archivo /home/eridamega/public_html/shop/src/Core/Addon/Theme/ThemeManager.php
[2] file_get_contents(...public_html/shop/app/cache/dev/sandbox/5ab865bc940d1//config/theme.yml): failed to open stream: No such file or directory

Notice en línea 49 en archivo .../public_html/shop/src/Core/Addon/Theme/Theme.php
[8] Undefined index: name
 

 

I try instal and show it..why???

Edited by eridamega (see edit history)

Share this post


Link to post
Share on other sites

hello,

After upload the Theme, when apply it cause an error. It says ;

localhost is currently unable to handle this request.

HTTP ERROR 500
  • Confused 1

Share this post


Link to post
Share on other sites

Hi.

Procedure to install the theme:

1º Extract the contents of the file correctly. (First img) 

Extract the "atsbasictheme" folder from the .zip file

2º Copy folder "atsbasictheme" to folder theme for installation (Second img).

The problem is that the correct installation folder is located inside the development folder ...

3º From the prestashop backoffice in Themes, install Atsbasictheme. (Third image).

In case of having any problem in the installation, compress the "atsbasictheme" folder to install by the normal procedure.

 

Greetings and good sales.

ats_Theme03.jpeg

ats_Theme02.jpeg

ats_Theme01.jpeg

Share this post


Link to post
Share on other sites
45 minutes ago, freiserk said:

Hi.

Procedure to install the theme:

1º Extract the contents of the file correctly. (First img) 

Extract the "atsbasictheme" folder from the .zip file

2º Copy folder "atsbasictheme" to folder theme for installation (Second img).

The problem is that the correct installation folder is located inside the development folder ...

3º From the prestashop backoffice in Themes, install Atsbasictheme. (Third image).

In case of having any problem in the installation, compress the "atsbasictheme" folder to install by the normal procedure.

 

Greetings and good sales.

ats_Theme03.jpeg

ats_Theme02.jpeg

ats_Theme01.jpeg

Thank you for the reply.. I tried this. But when I click on 'Apply this theme' button, it cause bellow error. I tried version 1.7.2 and 1.7.3 but no luck

Untitled2.png

Share this post


Link to post
Share on other sites

I'm going to try a new installation and my compressed folder to verify one more time.
In case it works I upload my compressed folder and the tests.

 

OK, now...

In folder config edit file theme.yml and delete lines 50 and 63.

And try to load the theme once again.

ats_mod.jpeg

Edited by freiserk
Edit file theme.yml (see edit history)

Share this post


Link to post
Share on other sites
1 hour ago, freiserk said:

I'm going to try a new installation and my compressed folder to verify one more time.
In case it works I upload my compressed folder and the tests.

 

OK, now...

In folder config edit file theme.yml and delete lines 50 and 63.

And try to load the theme once again.

ats_mod.jpeg

 

My current theme is classic. After removing the above lines in the theme.yml of atsbasictheme config folder, I cannot even navigate to 'Theme & Log' menu in the admin panel. cause same 500 error. this is strange.. 

Share this post


Link to post
Share on other sites
hace 13 horas, tecnoservicel dijo:

I have the same error 500, the theme supports php 7.0?

 

Hi, yes.

I have 7.1.12 and work well.

Share this post


Link to post
Share on other sites
15 hours ago, tecnoservicel said:

I have the same error 500, the theme supports php 7.0?

 

Yes it does support php 7.0. The theme was based on the default classic theme.

 

Share this post


Link to post
Share on other sites
On 4/3/2018 at 7:43 AM, dhanushka888 said:

hello,

After upload the Theme, when apply it cause an error. It says ;

localhost is currently unable to handle this request.

HTTP ERROR 500

 

You need to enable the error display option of Prestashop to see the source of the problem. Do this by setting _PS_MODE_DEV_ as true in defines.inc.php file located in the config folder.

 

Share this post


Link to post
Share on other sites
29 minutes ago, ajaxthemestudios said:

 

You need to enable the error display option of Prestashop to see the source of the problem. Do this by setting _PS_MODE_DEV_ as true in defines.inc.php file located in the config folder.

 

Thank you.. Please find here with the error log. I really appreciate if you can point out the issue..

Untitled3.png

Share this post


Link to post
Share on other sites

Thanks, works perfect, I made some modifications to my liking and is already in production mode, in mobile I was a bit out of place some things but nothing important

Share this post


Link to post
Share on other sites

Installed theme succesfully but when I try to activate it I get the following error (as Super Admin):

"You are not allowed to enable this module"

image.thumb.png.200cf694d126a3d237bf2d23b779a1f3.png

 

I'm new to PrestaShop, but in terms of modification it is really annoying...

 

Share this post


Link to post
Share on other sites

when to install this theme,it is said"You are not allowed to enable this module",after delete theme.yml lines 50 and 63,it is ok to install this theme,but the banner on the right of the slider module is missing,it is blank.

20180417230847.jpg

Share this post


Link to post
Share on other sites

Hi:

When try to install it give me the problem:

No tienes permisos para activar este módulo.  You have no rights/permision to install this module

I don't know wha'ts  happend, Do you?

Prestashop 1.7.3.2 and php 7.1.16 all folders and files are 777

Thanks for you time

 

Edited by jmeca
Add information (see edit history)

Share this post


Link to post
Share on other sites

Hi.
Sorry i cant install theme.

When i try install the theme, display a error "You have no rights/permission to install module"

Prestashop 1.7.3.2

PHP 7.2

 

Thanks

Share this post


Link to post
Share on other sites
2 hours ago, jmeca said:

Hi:

When try to install it give me the problem:

No tienes permisos para activar este módulo.  You have no rights/permision to install this module

I don't know wha'ts  happend, Do you?

Prestashop 1.7.3.2 and php 7.1.16 all folders and files are 777

Thanks for you time

 

 

I fixed, duplicate ps_banner to ps_banner2 (class, config, etc...)

 

Share this post


Link to post
Share on other sites
On 4/12/2018 at 12:51 PM, Flying Dutchman said:

Installed theme succesfully but when I try to activate it I get the following error (as Super Admin):

"You are not allowed to enable this module"

image.thumb.png.200cf694d126a3d237bf2d23b779a1f3.png

 

I'm new to PrestaShop, but in terms of modification it is really annoying...

 

 

Try and remove ps_customtext2 via FTP or by removing inside the theme configuration file. Repackage and reinstall. We will provide a permanent fix in coming days.

 

Share this post


Link to post
Share on other sites
On 4/17/2018 at 4:10 PM, wjq588jk said:

when to install this theme,it is said"You are not allowed to enable this module",after delete theme.yml lines 50 and 63,it is ok to install this theme,but the banner on the right of the slider module is missing,it is blank.

20180417230847.jpg

 

Try and manually install the modules you removed by deleting the lines especially the ps_banner2 module. Enable them and hook to the right positions. They are the reason you are seeing blank.

 

 

Share this post


Link to post
Share on other sites
On 5/3/2018 at 7:37 PM, jmeca said:

Hi:

When try to install it give me the problem:

No tienes permisos para activar este módulo.  You have no rights/permision to install this module

I don't know wha'ts  happend, Do you?

Prestashop 1.7.3.2 and php 7.1.16 all folders and files are 777

Thanks for you time

 

 

Please try the approach used by others by removing the duplicated module and install them later manually.

 

 

Share this post


Link to post
Share on other sites

Finally get it up. Nice theme.

A few changes must be  done to the source code.

1. You only need atsbasictheme directory inside the zip

2. customtext2 and ps_banner2 modules are missing. You can clone from the original modules/customtext and modules/ps_banner module. (Need change config.xml, ps_banner2.php and ps_banner2.tpl).

For me, i simply removed customtext2 from theme.yml and created ps_banner2 module. ps_banner2 is the nice small banner beside the slider and I pasted ps_banner2.php below.

<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <contact@prestashop.com>
*  @copyright  2007-2015 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

if (!defined('_PS_VERSION_')) {
    exit;
}

use PrestaShop\PrestaShop\Core\Module\WidgetInterface;

class Ps_Banner2 extends Module implements WidgetInterface
{
    private $templateFile;

	public function __construct()
	{
		$this->name = 'ps_banner2';
		$this->version = '0.1.0';
		$this->author = 'PrestaShop';
		$this->need_instance = 0;

        $this->bootstrap = true;
        parent::__construct();

        $this->displayName = $this->trans('Banner Small', array(), 'Modules.Banner.Admin');
        $this->description = $this->trans('Displays a small banner on your shop.', array(), 'Modules.Banner.Admin');

        $this->ps_versions_compliancy = array('min' => '1.7.1.0', 'max' => _PS_VERSION_);

        $this->templateFile = 'module:ps_banner2/ps_banner2.tpl';
    }

    public function install()
    {
        return (parent::install() &&
            $this->registerHook('displayHome') &&
            $this->registerHook('actionObjectLanguageAddAfter') &&
            $this->installFixtures() &&
            $this->disableDevice(Context::DEVICE_MOBILE));
    }

    public function hookActionObjectLanguageAddAfter($params)
    {
        return $this->installFixture((int)$params['object']->id, Configuration::get('BANNER2_IMG', (int)Configuration::get('PS_LANG_DEFAULT')));
    }

    protected function installFixtures()
    {
        $languages = Language::getLanguages(false);

        foreach ($languages as $lang) {
            $this->installFixture((int)$lang['id_lang'], 'sample.jpg');
        }

        return true;
    }

    protected function installFixture($id_lang, $image = null)
    {
		$values['BANNER2_TITLE'][(int)$id_lang] = '';
		$values['BANNER2_SUBTITLE'][(int)$id_lang] = '';
        $values['BANNER2_IMG'][(int)$id_lang] = $image;
        $values['BANNER2_LINK'][(int)$id_lang] = '';
        $values['BANNER2_DESC'][(int)$id_lang] = '';

		Configuration::updateValue('BANNER2_TITLE', $values['BANNER2_TITLE']);
		Configuration::updateValue('BANNER2_SUBTITLE', $values['BANNER2_SUBTITLE']);
        Configuration::updateValue('BANNER2_IMG', $values['BANNER2_IMG']);
        Configuration::updateValue('BANNER2_LINK', $values['BANNER2_LINK']);
        Configuration::updateValue('BANNER2_DESC', $values['BANNER2_DESC']);
    }

    public function uninstall()
    {
		Configuration::deleteByName('BANNER2_TITLE');
		Configuration::deleteByName('BANNER2_SUBTITLE');
        Configuration::deleteByName('BANNER2_IMG');
        Configuration::deleteByName('BANNER2_LINK');
        Configuration::deleteByName('BANNER2_DESC');

        return parent::uninstall();
    }

    public function postProcess()
    {
        if (Tools::isSubmit('submitStoreConf')) {
            $languages = Language::getLanguages(false);
            $values = array();
            $update_images_values = false;

            foreach ($languages as $lang) {
				$values['BANNER2_TITLE'][$lang['id_lang']] = Tools::getValue('BANNER2_TITLE_'.$lang['id_lang']);
				$values['BANNER2_SUBTITLE'][$lang['id_lang']] = Tools::getValue('BANNER2_SUBTITLE_'.$lang['id_lang']);
				
                if (isset($_FILES['BANNER2_IMG_'.$lang['id_lang']])
                    && isset($_FILES['BANNER2_IMG_'.$lang['id_lang']]['tmp_name'])
                    && !empty($_FILES['BANNER2_IMG_'.$lang['id_lang']]['tmp_name'])) {
                    if ($error = ImageManager::validateUpload($_FILES['BANNER2_IMG_'.$lang['id_lang']], 4000000)) {
                        return $error;
                    } else {
                        $ext = substr($_FILES['BANNER2_IMG_'.$lang['id_lang']]['name'], strrpos($_FILES['BANNER2_IMG_'.$lang['id_lang']]['name'], '.') + 1);
                        $file_name = md5($_FILES['BANNER2_IMG_'.$lang['id_lang']]['name']).'.'.$ext;

                        if (!move_uploaded_file($_FILES['BANNER2_IMG_'.$lang['id_lang']]['tmp_name'], dirname(__FILE__).DIRECTORY_SEPARATOR.'img'.DIRECTORY_SEPARATOR.$file_name)) {
                            return $this->displayError($this->trans('An error occurred while attempting to upload the file.', array(), 'Admin.Notifications.Error'));
                        } else {
                            if (Configuration::hasContext('BANNER2_IMG', $lang['id_lang'], Shop::getContext())
                                && Configuration::get('BANNER2_IMG', $lang['id_lang']) != $file_name) {
                                @unlink(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'img' . DIRECTORY_SEPARATOR . Configuration::get('BANNER2_IMG', $lang['id_lang']));
                            }

                            $values['BANNER2_IMG'][$lang['id_lang']] = $file_name;
                        }
                    }

                    $update_images_values = true;
                }

                $values['BANNER2_LINK'][$lang['id_lang']] = Tools::getValue('BANNER2_LINK_'.$lang['id_lang']);
                $values['BANNER2_DESC'][$lang['id_lang']] = Tools::getValue('BANNER2_DESC_'.$lang['id_lang']);
            }
			
			Configuration::updateValue('BANNER2_TITLE', $values['BANNER2_TITLE']);
			Configuration::updateValue('BANNER2_SUBTITLE', $values['BANNER2_SUBTITLE']);
			
            if ($update_images_values) {
                Configuration::updateValue('BANNER2_IMG', $values['BANNER2_IMG']);
            }

            Configuration::updateValue('BANNER2_LINK', $values['BANNER2_LINK']);
            Configuration::updateValue('BANNER2_DESC', $values['BANNER2_DESC']);

            $this->_clearCache($this->templateFile);

            return $this->displayConfirmation($this->trans('The settings have been updated.', array(), 'Admin.Notifications.Success'));
        }

        return '';
    }

    public function getContent()
    {
        return $this->postProcess().$this->renderForm();
    }

    public function renderForm()
    {
        $fields_form = array(
            'form' => array(
                'legend' => array(
                    'title' => $this->trans('Settings', array(), 'Admin.Global'),
                    'icon' => 'icon-cogs'
                ),
                'input' => array(
					array(
                        'type' => 'text',
                        'lang' => true,
                        'label' => $this->trans('Banner Title', array(), 'Modules.Banner.Admin'),
                        'name' => 'BANNER2_TITLE',
                        'desc' => $this->trans('Enter the title associated to your banner. It will be shown on top of the image.', array(), 'Modules.Banner.Admin')
                    ),
					array(
                        'type' => 'text',
                        'lang' => true,
                        'label' => $this->trans('Banner Subtitle', array(), 'Modules.Banner.Admin'),
                        'name' => 'BANNER2_SUBTITLE',
                        'desc' => $this->trans('Enter the subtitle associated to your banner. It will be shown on top of the image.', array(), 'Modules.Banner.Admin')
                    ),
                    array(
                        'type' => 'file_lang',
                        'label' => $this->trans('Banner image', array(), 'Modules.Banner.Admin'),
                        'name' => 'BANNER2_IMG',
                        'desc' => $this->trans('Upload an image for your top banner. The recommended dimensions are 300 x 400px if you are using the default theme.', array(), 'Modules.Banner.Admin'),
                        'lang' => true,
                    ),
					array(
                        'type' => 'text',
                        'lang' => true,
                        'label' => $this->trans('Banner Link', array(), 'Modules.Banner.Admin'),
                        'name' => 'BANNER2_LINK',
                        'desc' => $this->trans('Enter the link associated to your banner. When clicking on the banner, the link opens in the same window. If no link is entered, it redirects to the homepage.', array(), 'Modules.Banner.Admin')
                    ),
                    array(
                        'type' => 'text',
                        'lang' => true,
                        'label' => $this->trans('Banner description', array(), 'Modules.Banner.Admin'),
                        'name' => 'BANNER2_DESC',
                        'desc' => $this->trans('Please enter a short but meaningful description for the banner.', array(), 'Modules.Banner.Admin')
                    )
                ),
                'submit' => array(
                    'title' => $this->trans('Save', array(), 'Admin.Actions')
                )
            ),
        );

        $lang = new Language((int)Configuration::get('PS_LANG_DEFAULT'));

        $helper = new HelperForm();
        $helper->show_toolbar = false;
        $helper->table = $this->table;
        $helper->default_form_language = $lang->id;
        $helper->module = $this;
        $helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0;
        $helper->identifier = $this->identifier;
        $helper->submit_action = 'submitStoreConf';
        $helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false).'&configure='.$this->name.'&tab_module='.$this->tab.'&module_name='.$this->name;
        $helper->token = Tools::getAdminTokenLite('AdminModules');
        $helper->tpl_vars = array(
            'uri' => $this->getPathUri(),
            'fields_value' => $this->getConfigFieldsValues(),
            'languages' => $this->context->controller->getLanguages(),
            'id_language' => $this->context->language->id
        );

        return $helper->generateForm(array($fields_form));
    }

    public function getConfigFieldsValues()
    {
        $languages = Language::getLanguages(false);
        $fields = array();

        foreach ($languages as $lang) {
			$fields['BANNER2_TITLE'][$lang['id_lang']] = Tools::getValue('BANNER2_TITLE_'.$lang['id_lang'], Configuration::get('BANNER2_TITLE', $lang['id_lang']));
			$fields['BANNER2_SUBTITLE'][$lang['id_lang']] = Tools::getValue('BANNER2_SUBTITLE_'.$lang['id_lang'], Configuration::get('BANNER2_SUBTITLE', $lang['id_lang']));
            $fields['BANNER2_IMG'][$lang['id_lang']] = Tools::getValue('BANNER2_IMG_'.$lang['id_lang'], Configuration::get('BANNER2_IMG', $lang['id_lang']));
            $fields['BANNER2_LINK'][$lang['id_lang']] = Tools::getValue('BANNER2_LINK_'.$lang['id_lang'], Configuration::get('BANNER2_LINK', $lang['id_lang']));
            $fields['BANNER2_DESC'][$lang['id_lang']] = Tools::getValue('BANNER2_DESC_'.$lang['id_lang'], Configuration::get('BANNER2_DESC', $lang['id_lang']));
        }

        return $fields;
    }

    public function renderWidget($hookName, array $params)
    {
        if (!$this->isCached($this->templateFile, $this->getCacheId('ps_banner2'))) {
            $this->smarty->assign($this->getWidgetVariables($hookName, $params));
        }
		
        return $this->fetch($this->templateFile, $this->getCacheId('ps_banner2'));
    }

    public function getWidgetVariables($hookName, array $params)
    {
        $imgname = Configuration::get('BANNER2_IMG', $this->context->language->id);

        if ($imgname && file_exists(_PS_MODULE_DIR_.$this->name.DIRECTORY_SEPARATOR.'img'.DIRECTORY_SEPARATOR.$imgname)) {
            $this->smarty->assign('banner2_img', $this->context->link->protocol_content . Tools::getMediaServer($imgname) . $this->_path . 'img/' . $imgname);
        }

        $banner2_link = Configuration::get('BANNER2_LINK', $this->context->language->id);
        if (!$banner2_link) {
            $banner2_link = $this->context->link->getPageLink('index');
        }
		
        return array(
            'banner2_link' => $this->updateUrl($banner2_link),
			'banner2_title' => Configuration::get('BANNER2_TITLE', $this->context->language->id),
			'banner2_subtitle' => Configuration::get('BANNER2_SUBTITLE', $this->context->language->id),
            'banner2_desc' => Configuration::get('BANNER2_DESC', $this->context->language->id)
        );
    }

    private function updateUrl($link)
    {
        if (substr($link, 0, 7) !== "http://" && substr($link, 0, 8) !== "https://") {
            $link = "http://" . $link;
        }

        return $link;
    }
}

3. This theme has a logic bug that if you didn't set description, the product details tab content won't be shown . You can fix it in the templates/catalog/product.tpl and templates/catalog/_partial/product-details.tpl.

product.tpl

line 156 should be: <li class="nav-link{if !$product.description} active uk-active{/if}">

line 181 to line 185 should be in a if statement: 

{if $product.description}
						<div id="description">
							{block name='product_description'}
								<div class="product-description">{$product.description nofilter}</div>
							{/block}
						</div>
					{/if}

Similiar need be applied to product-details.tpl. in line 1 

<div class="tab-pane fade{if !$product.description} in active uk-active{/if}"
     id="product-details"
     data-product="{$product.embedded_attributes|json_encode}"
     role="tabpanel"
  >

 

Share this post


Link to post
Share on other sites
On 5/13/2018 at 5:18 AM, fllayx said:

Finally get it up. Nice theme.

A few changes must be  done to the source code.

1. You only need atsbasictheme directory inside the zip

2. customtext2 and ps_banner2 modules are missing. You can clone from the original modules/customtext and modules/ps_banner module. (Need change config.xml, ps_banner2.php and ps_banner2.tpl).

For me, i simply removed customtext2 from theme.yml and created ps_banner2 module. ps_banner2 is the nice small banner beside the slider and I pasted ps_banner2.php below.


<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <contact@prestashop.com>
*  @copyright  2007-2015 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

if (!defined('_PS_VERSION_')) {
    exit;
}

use PrestaShop\PrestaShop\Core\Module\WidgetInterface;

class Ps_Banner2 extends Module implements WidgetInterface
{
    private $templateFile;

	public function __construct()
	{
		$this->name = 'ps_banner2';
		$this->version = '0.1.0';
		$this->author = 'PrestaShop';
		$this->need_instance = 0;

        $this->bootstrap = true;
        parent::__construct();

        $this->displayName = $this->trans('Banner Small', array(), 'Modules.Banner.Admin');
        $this->description = $this->trans('Displays a small banner on your shop.', array(), 'Modules.Banner.Admin');

        $this->ps_versions_compliancy = array('min' => '1.7.1.0', 'max' => _PS_VERSION_);

        $this->templateFile = 'module:ps_banner2/ps_banner2.tpl';
    }

    public function install()
    {
        return (parent::install() &&
            $this->registerHook('displayHome') &&
            $this->registerHook('actionObjectLanguageAddAfter') &&
            $this->installFixtures() &&
            $this->disableDevice(Context::DEVICE_MOBILE));
    }

    public function hookActionObjectLanguageAddAfter($params)
    {
        return $this->installFixture((int)$params['object']->id, Configuration::get('BANNER2_IMG', (int)Configuration::get('PS_LANG_DEFAULT')));
    }

    protected function installFixtures()
    {
        $languages = Language::getLanguages(false);

        foreach ($languages as $lang) {
            $this->installFixture((int)$lang['id_lang'], 'sample.jpg');
        }

        return true;
    }

    protected function installFixture($id_lang, $image = null)
    {
		$values['BANNER2_TITLE'][(int)$id_lang] = '';
		$values['BANNER2_SUBTITLE'][(int)$id_lang] = '';
        $values['BANNER2_IMG'][(int)$id_lang] = $image;
        $values['BANNER2_LINK'][(int)$id_lang] = '';
        $values['BANNER2_DESC'][(int)$id_lang] = '';

		Configuration::updateValue('BANNER2_TITLE', $values['BANNER2_TITLE']);
		Configuration::updateValue('BANNER2_SUBTITLE', $values['BANNER2_SUBTITLE']);
        Configuration::updateValue('BANNER2_IMG', $values['BANNER2_IMG']);
        Configuration::updateValue('BANNER2_LINK', $values['BANNER2_LINK']);
        Configuration::updateValue('BANNER2_DESC', $values['BANNER2_DESC']);
    }

    public function uninstall()
    {
		Configuration::deleteByName('BANNER2_TITLE');
		Configuration::deleteByName('BANNER2_SUBTITLE');
        Configuration::deleteByName('BANNER2_IMG');
        Configuration::deleteByName('BANNER2_LINK');
        Configuration::deleteByName('BANNER2_DESC');

        return parent::uninstall();
    }

    public function postProcess()
    {
        if (Tools::isSubmit('submitStoreConf')) {
            $languages = Language::getLanguages(false);
            $values = array();
            $update_images_values = false;

            foreach ($languages as $lang) {
				$values['BANNER2_TITLE'][$lang['id_lang']] = Tools::getValue('BANNER2_TITLE_'.$lang['id_lang']);
				$values['BANNER2_SUBTITLE'][$lang['id_lang']] = Tools::getValue('BANNER2_SUBTITLE_'.$lang['id_lang']);
				
                if (isset($_FILES['BANNER2_IMG_'.$lang['id_lang']])
                    && isset($_FILES['BANNER2_IMG_'.$lang['id_lang']]['tmp_name'])
                    && !empty($_FILES['BANNER2_IMG_'.$lang['id_lang']]['tmp_name'])) {
                    if ($error = ImageManager::validateUpload($_FILES['BANNER2_IMG_'.$lang['id_lang']], 4000000)) {
                        return $error;
                    } else {
                        $ext = substr($_FILES['BANNER2_IMG_'.$lang['id_lang']]['name'], strrpos($_FILES['BANNER2_IMG_'.$lang['id_lang']]['name'], '.') + 1);
                        $file_name = md5($_FILES['BANNER2_IMG_'.$lang['id_lang']]['name']).'.'.$ext;

                        if (!move_uploaded_file($_FILES['BANNER2_IMG_'.$lang['id_lang']]['tmp_name'], dirname(__FILE__).DIRECTORY_SEPARATOR.'img'.DIRECTORY_SEPARATOR.$file_name)) {
                            return $this->displayError($this->trans('An error occurred while attempting to upload the file.', array(), 'Admin.Notifications.Error'));
                        } else {
                            if (Configuration::hasContext('BANNER2_IMG', $lang['id_lang'], Shop::getContext())
                                && Configuration::get('BANNER2_IMG', $lang['id_lang']) != $file_name) {
                                @unlink(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'img' . DIRECTORY_SEPARATOR . Configuration::get('BANNER2_IMG', $lang['id_lang']));
                            }

                            $values['BANNER2_IMG'][$lang['id_lang']] = $file_name;
                        }
                    }

                    $update_images_values = true;
                }

                $values['BANNER2_LINK'][$lang['id_lang']] = Tools::getValue('BANNER2_LINK_'.$lang['id_lang']);
                $values['BANNER2_DESC'][$lang['id_lang']] = Tools::getValue('BANNER2_DESC_'.$lang['id_lang']);
            }
			
			Configuration::updateValue('BANNER2_TITLE', $values['BANNER2_TITLE']);
			Configuration::updateValue('BANNER2_SUBTITLE', $values['BANNER2_SUBTITLE']);
			
            if ($update_images_values) {
                Configuration::updateValue('BANNER2_IMG', $values['BANNER2_IMG']);
            }

            Configuration::updateValue('BANNER2_LINK', $values['BANNER2_LINK']);
            Configuration::updateValue('BANNER2_DESC', $values['BANNER2_DESC']);

            $this->_clearCache($this->templateFile);

            return $this->displayConfirmation($this->trans('The settings have been updated.', array(), 'Admin.Notifications.Success'));
        }

        return '';
    }

    public function getContent()
    {
        return $this->postProcess().$this->renderForm();
    }

    public function renderForm()
    {
        $fields_form = array(
            'form' => array(
                'legend' => array(
                    'title' => $this->trans('Settings', array(), 'Admin.Global'),
                    'icon' => 'icon-cogs'
                ),
                'input' => array(
					array(
                        'type' => 'text',
                        'lang' => true,
                        'label' => $this->trans('Banner Title', array(), 'Modules.Banner.Admin'),
                        'name' => 'BANNER2_TITLE',
                        'desc' => $this->trans('Enter the title associated to your banner. It will be shown on top of the image.', array(), 'Modules.Banner.Admin')
                    ),
					array(
                        'type' => 'text',
                        'lang' => true,
                        'label' => $this->trans('Banner Subtitle', array(), 'Modules.Banner.Admin'),
                        'name' => 'BANNER2_SUBTITLE',
                        'desc' => $this->trans('Enter the subtitle associated to your banner. It will be shown on top of the image.', array(), 'Modules.Banner.Admin')
                    ),
                    array(
                        'type' => 'file_lang',
                        'label' => $this->trans('Banner image', array(), 'Modules.Banner.Admin'),
                        'name' => 'BANNER2_IMG',
                        'desc' => $this->trans('Upload an image for your top banner. The recommended dimensions are 300 x 400px if you are using the default theme.', array(), 'Modules.Banner.Admin'),
                        'lang' => true,
                    ),
					array(
                        'type' => 'text',
                        'lang' => true,
                        'label' => $this->trans('Banner Link', array(), 'Modules.Banner.Admin'),
                        'name' => 'BANNER2_LINK',
                        'desc' => $this->trans('Enter the link associated to your banner. When clicking on the banner, the link opens in the same window. If no link is entered, it redirects to the homepage.', array(), 'Modules.Banner.Admin')
                    ),
                    array(
                        'type' => 'text',
                        'lang' => true,
                        'label' => $this->trans('Banner description', array(), 'Modules.Banner.Admin'),
                        'name' => 'BANNER2_DESC',
                        'desc' => $this->trans('Please enter a short but meaningful description for the banner.', array(), 'Modules.Banner.Admin')
                    )
                ),
                'submit' => array(
                    'title' => $this->trans('Save', array(), 'Admin.Actions')
                )
            ),
        );

        $lang = new Language((int)Configuration::get('PS_LANG_DEFAULT'));

        $helper = new HelperForm();
        $helper->show_toolbar = false;
        $helper->table = $this->table;
        $helper->default_form_language = $lang->id;
        $helper->module = $this;
        $helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0;
        $helper->identifier = $this->identifier;
        $helper->submit_action = 'submitStoreConf';
        $helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false).'&configure='.$this->name.'&tab_module='.$this->tab.'&module_name='.$this->name;
        $helper->token = Tools::getAdminTokenLite('AdminModules');
        $helper->tpl_vars = array(
            'uri' => $this->getPathUri(),
            'fields_value' => $this->getConfigFieldsValues(),
            'languages' => $this->context->controller->getLanguages(),
            'id_language' => $this->context->language->id
        );

        return $helper->generateForm(array($fields_form));
    }

    public function getConfigFieldsValues()
    {
        $languages = Language::getLanguages(false);
        $fields = array();

        foreach ($languages as $lang) {
			$fields['BANNER2_TITLE'][$lang['id_lang']] = Tools::getValue('BANNER2_TITLE_'.$lang['id_lang'], Configuration::get('BANNER2_TITLE', $lang['id_lang']));
			$fields['BANNER2_SUBTITLE'][$lang['id_lang']] = Tools::getValue('BANNER2_SUBTITLE_'.$lang['id_lang'], Configuration::get('BANNER2_SUBTITLE', $lang['id_lang']));
            $fields['BANNER2_IMG'][$lang['id_lang']] = Tools::getValue('BANNER2_IMG_'.$lang['id_lang'], Configuration::get('BANNER2_IMG', $lang['id_lang']));
            $fields['BANNER2_LINK'][$lang['id_lang']] = Tools::getValue('BANNER2_LINK_'.$lang['id_lang'], Configuration::get('BANNER2_LINK', $lang['id_lang']));
            $fields['BANNER2_DESC'][$lang['id_lang']] = Tools::getValue('BANNER2_DESC_'.$lang['id_lang'], Configuration::get('BANNER2_DESC', $lang['id_lang']));
        }

        return $fields;
    }

    public function renderWidget($hookName, array $params)
    {
        if (!$this->isCached($this->templateFile, $this->getCacheId('ps_banner2'))) {
            $this->smarty->assign($this->getWidgetVariables($hookName, $params));
        }
		
        return $this->fetch($this->templateFile, $this->getCacheId('ps_banner2'));
    }

    public function getWidgetVariables($hookName, array $params)
    {
        $imgname = Configuration::get('BANNER2_IMG', $this->context->language->id);

        if ($imgname && file_exists(_PS_MODULE_DIR_.$this->name.DIRECTORY_SEPARATOR.'img'.DIRECTORY_SEPARATOR.$imgname)) {
            $this->smarty->assign('banner2_img', $this->context->link->protocol_content . Tools::getMediaServer($imgname) . $this->_path . 'img/' . $imgname);
        }

        $banner2_link = Configuration::get('BANNER2_LINK', $this->context->language->id);
        if (!$banner2_link) {
            $banner2_link = $this->context->link->getPageLink('index');
        }
		
        return array(
            'banner2_link' => $this->updateUrl($banner2_link),
			'banner2_title' => Configuration::get('BANNER2_TITLE', $this->context->language->id),
			'banner2_subtitle' => Configuration::get('BANNER2_SUBTITLE', $this->context->language->id),
            'banner2_desc' => Configuration::get('BANNER2_DESC', $this->context->language->id)
        );
    }

    private function updateUrl($link)
    {
        if (substr($link, 0, 7) !== "http://" && substr($link, 0, 8) !== "https://") {
            $link = "http://" . $link;
        }

        return $link;
    }
}

3. This theme has a logic bug that if you didn't set description, the product details tab content won't be shown . You can fix it in the templates/catalog/product.tpl and templates/catalog/_partial/product-details.tpl.

product.tpl

line 156 should be: <li class="nav-link{if !$product.description} active uk-active{/if}">

line 181 to line 185 should be in a if statement: 


{if $product.description}
						<div id="description">
							{block name='product_description'}
								<div class="product-description">{$product.description nofilter}</div>
							{/block}
						</div>
					{/if}

Similiar need be applied to product-details.tpl. in line 1 


<div class="tab-pane fade{if !$product.description} in active uk-active{/if}"
     id="product-details"
     data-product="{$product.embedded_attributes|json_encode}"
     role="tabpanel"
  >

 

 

Thank you for taking time to give me a feedback and assist other members too. We have fixed the bug using your solution with a little change. We actually created both  customtext2 and ps_banner2 modules which you can see appears in our demo but we noticed they were not packaged with the theme. We have added them to the latest version. We have repackaged the theme now.

Share this post


Link to post
Share on other sites

Hi, when unzip atsbasictheme.zip (the zip that are when unzip atsbasictheme-v1.1.0.zip), the structure is not load correctly.

5b0f156d94dbd_Capturadepantallade2018-05-3018-17-16.thumb.png.cd3b66c9790551797ccedfc5e5108907.png

I can't install the theme in PS 1.7.3.3:(
I tried both forms (admin panel and uploading the unzipped folder)

Share this post


Link to post
Share on other sites
On 5/30/2018 at 10:19 PM, ucuraj said:

Hi, when unzip atsbasictheme.zip (the zip that are when unzip atsbasictheme-v1.1.0.zip), the structure is not load correctly.

5b0f156d94dbd_Capturadepantallade2018-05-3018-17-16.thumb.png.cd3b66c9790551797ccedfc5e5108907.png

I can't install the theme in PS 1.7.3.3:(
I tried both forms (admin panel and uploading the unzipped folder)

 

Sorry. I don't get regularly notified by Prestashop forum so I did not get this message in time. Have you resolved this?

 

Share this post


Link to post
Share on other sites

Hello!

I've tried to add it via backend but no success: says Theme not compatible with Prestashop 1.7 (mine is 1.7.2.4)

Tryied to unzip the file, rename it to atsbasictheme, still no success (I've noticed  that some folders are decompressed as files. 

 

 

Any help?

Edited by TPrigas
Update! (see edit history)

Share this post


Link to post
Share on other sites
23 minutes ago, TPrigas said:

Hello!

I've tried to add it via backend but no success: says Theme not compatible with Prestashop 1.7 (mine is 1.7.2.4)

Any help?

 

Maybe you are installing the wrong way. Please check the instruction. There are people who have installed on 1.7.3

Share this post


Link to post
Share on other sites
On 2018-06-21 at 12:38 PM, TPrigas said:

Here is the error I get when trying to import the theme:

 

2018-06-21 10-29-14.png

 

Please look previous posts - there are working solutions to by-pass the need of older then Prestashop 1.7 version.

Share this post


Link to post
Share on other sites

I don't know if it was my fault.  
I installed first the modules but I was getting the not valid for  V. 1.7.3.0 so made a manual installation.  It was working but when I disabled one of the modules I got this message.   I uninstalled everything, modules and theme but kept getting this :/   had to use a backup to get site back

 

image.png.c37fe9896f3269e735859c7c4d3d0327.png

Edited by alitogata (see edit history)

Share this post


Link to post
Share on other sites

Hello @ajaxthemestudios can you please include the webpack file in the folder? it is not in the _dev folder.

 

Thank you 

Share this post


Link to post
Share on other sites

I have unzipped the file and installed the 2 modules first, but if I try to upload the theme zip file I get an error message saying the theme is not suited for 1.7.

I'm running a clean fresh install of 1.7.4

2018-07-11_18-40-34.jpg

Share this post


Link to post
Share on other sites

How can I change the name of button "Quick View", I can't find it in translation menu.

Any chance I can do it in theme files?

"Quick View" is located in part of code starts from: <a class="quick-view uk-button uk-button-default uk-button-small" href="#" data-link-action="quickview">

quick.png

Share this post


Link to post
Share on other sites
1 hour ago, Cyfronik.pl said:

How can I change the name of button "Quick View", I can't find it in translation menu.

Any chance I can do it in theme files?

"Quick View" is located in part of code starts from: <a class="quick-view uk-button uk-button-default uk-button-small" href="#" data-link-action="quickview">

quick.png

 

Look for {l s='Quick view' d='Shop.Theme.Actions'} in the product.tpl file located in atsbasictheme/templates/catalog/_partials/miniatures/. It appears twice.

But you should be able to translate it in the backoffice.

 

Edited by ajaxthemestudios (see edit history)

Share this post


Link to post
Share on other sites
20 minut temu, ajaxthemestudios napisał:

 

Look for {l s='Quick view' d='Shop.Theme.Actions'} in the product.tpl file located in atsbasictheme/templates/catalog/_partials/miniatures/. It appears twice.

But you should be able to translate it in the backoffice.

 

Changing two times in product.tpl is not proper sollution. Still the same. We spent a lot of time, searching in backoffice.

 

Share this post


Link to post
Share on other sites
39 minutes ago, Cyfronik.pl said:

Changing two times in product.tpl is not proper sollution. Still the same. We spent a lot of time, searching in backoffice.

 

 

 

I don't know where you searched, but you can translate in the backoffice. See attachment.

 

sample.thumb.png.30c1632f081be414bcb96c740554ae89.png

Share this post


Link to post
Share on other sites

Is there a way to delete the 'ATS custom banner module and make the Image slider module wider instead? 

 

Besides, I would also like to delete the 'Legal Notice' tab in the footer.

How can I do that ?

Edited by Awaces (see edit history)

Share this post


Link to post
Share on other sites
On 11/07/2018 at 6:43 PM, Nienke said:

I have unzipped the file and installed the 2 modules first, but if I try to upload the theme zip file I get an error message saying the theme is not suited for 1.7.

I'm running a clean fresh install of 1.7.4

2018-07-11_18-40-34.jpg

i had the same issue.

to fix it you must unzip the atsbasictheme.zip file with your favorites zip program (winzip, winrar, 7zip, ...)

delete the theme zip file and re-create it with extracted content

upload it again, it works ! (i hope for you ^^)

 

@ajaxthemestudios :

here is an example when extract the theme zip file under linux

-rw-rw-rw-  1 root     root       58684 mai   19 08:16 assets\fonts\themefontregular.woff
-rw-rw-rw-  1 root     root       50100 mai   19 08:16 assets\fonts\themefontregular.woff2
-rw-rw-rw-  1 root     root      311019 mai   19 08:16 assets\img\display-top-wrapper-bg.png
-rw-rw-rw-  1 root     root        4845 mai   19 08:16 assets\img\logo-dark.png
-rw-rw-rw-  1 root     root          94 mai   19 08:16 assets\js\custom.js
-rw-rw-rw-  1 root     root       51351 mai   19 08:16 assets\js\modernizr.js
-rw-rw-rw-  1 root     root      274422 mai   19 08:16 assets\js\theme.js
-rw-rw-rw-  1 root     root     1125526 mai   19 08:16 assets\js\theme.js.map
-rw-rw-rw-  1 root     root       66107 mai   19 08:16 assets\js\uikit\uikit-icons.js
-rw-rw-rw-  1 root     root       60097 mai   19 08:16 assets\js\uikit\uikit-icons.min.js
-rw-rw-rw-  1 root     root      298547 mai   19 08:16 assets\js\uikit\uikit.js
-rw-rw-rw-  1 root     root      122460 mai   19 08:16 assets\js\uikit\uikit.min.js
-rw-rw-rw-  1 root     root        3645 mai   19 08:16 config\theme.yml
-rw-rw-rw-  1 root     root           0 mai   19 08:16 _dev\css\components\alert.scss
-rw-rw-rw-  1 root     root       27797 mai   19 08:16 _dev\css\components\atsmenu.scss
-rw-rw-rw-  1 root     root           0 mai   19 08:16 _dev\css\components\block-reassurance.scss
-rw-rw-rw-  1 root     root        2690 mai   19 08:16 _dev\css\components\cart.scss
-rw-rw-rw-  1 root     root         440 mai   19 08:16 _dev\css\components\categories.scss
-rw-rw-rw-  1 root     root        4032 mai   19 08:16 _dev\css\components\checkout.scss
-rw-rw-rw-  1 root     root         176 mai   19 08:16 _dev\css\components\contact.scss
-rw-rw-rw-  1 root     root         554 mai   19 08:16 _dev\css\components\customer.scss
-rw-rw-rw-  1 root     root           0 mai   19 08:16 _dev\css\components\customization-modal.scss
-rw-rw-rw-  1 root     root           0 mai   19 08:16 _dev\css\components\custom-text.scss
-rw-rw-rw-  1 root     root           0 mai   19 08:16 _dev\css\components\drop-down.scss
-rw-rw-rw-  1 root     root           0 mai   19 08:16 _dev\css\components\errors.scss
-rw-rw-rw-  1 root     root           0 mai   19 08:16 _dev\css\components\featuredproducts.scss
-rw-rw-rw-  1 root     root           0 mai   19 08:16 _dev\css\components\footer.scss
-rw-rw-rw-  1 root     root           0 mai   19 08:16 _dev\css\components\forgotten-password.scss
-rw-rw-rw-  1 root     root           0 mai   19 08:16 _dev\css\components\imageslider.scss
-rw-rw-rw-  1 root     root         873 mai   19 08:16 _dev\css\components\jquery.bootstrap-touchspin.scss
-rw-rw-rw-  1 root     root       21390 mai   19 08:16 _dev\css\components\miscellaneous.scss
-rw-rw-rw-  1 root     root        2325 mai   19 08:16 _dev\css\components\product-list.scss
-rw-rw-rw-  1 root     root        2670 mai   19 08:16 _dev\css\components\products.scss
-rw-rw-rw-  1 root     root         184 mai   19 08:16 _dev\css\components\quickview.scss
-rw-rw-rw-  1 root     root           0 mai   19 08:16 _dev\css\components\renew-password.scss
-rw-rw-rw-  1 root     root           0 mai   19 08:16 _dev\css\components\search-widget.scss
-rw-rw-rw-  1 root     root           0 mai   19 08:16 _dev\css\components\sitemap.scss
-rw-rw-rw-  1 root     root          93 mai   19 08:16 _dev\css\components\stores.scss
-rw-rw-rw-  1 root     root        2189 mai   19 08:16 _dev\css\custom\_variables.scss
-rw-rw-rw-  1 root     root        1259 mai   19 08:16 _dev\css\theme.scss
-rw-rw-rw-  1 root     root        3301 mai   19 08:16 _dev\css\uikit\components\accordion.scss
-rw-rw-rw-  1 root     root        4302 mai   19 08:16 _dev\css\uikit\components\alert.scss
-rw-rw-rw-  1 root     root        2915 mai   19 08:16 _dev\css\uikit\components\align.scss
-rw-rw-rw-  1 root     root        7836 mai   19 08:16 _dev\css\uikit\components\animation.scss
-rw-rw-rw-  1 root     root        2718 mai   19 08:16 _dev\css\uikit\components\article.scss
-rw-rw-rw-  1 root     root        4614 mai   19 08:16 _dev\css\uikit\components\background.scss
-rw-rw-rw-  1 root     root        2490 mai   19 08:16 _dev\css\uikit\components\badge.scss
-rw-rw-rw-  1 root     root       16518 mai   19 08:16 _dev\css\uikit\components\base.scss
-rw-rw-rw-  1 root     root        3905 mai   19 08:16 _dev\css\uikit\components\breadcrumb.scss
-rw-rw-rw-  1 root     root       15830 mai   19 08:16 _dev\css\uikit\components\button.scss
-rw-rw-rw-  1 root     root       12700 mai   19 08:16 _dev\css\uikit\components\card.scss

no directories, only files

Edited by Bauz
unzip example (see edit history)

Share this post


Link to post
Share on other sites
On 7/25/2018 at 9:47 AM, Awaces said:

Is there a way to delete the 'ATS custom banner module and make the Image slider module wider instead? 

 

Besides, I would also like to delete the 'Legal Notice' tab in the footer.

How can I do that ?

 

Hi

For full image banner, you need to edit the slider.tpl in ps_imageslider module folder inside the theme folder. Find below:

<div id="homeslider" class="uk-width-3-4@m">

Replace with :

<div id="homeslider" class="uk-width-1-1">

Make sure the ATS custom banner module is disabled.

For the legal notice, please remove it in the PS Link Module or in the CMS section of the backend.

Share this post


Link to post
Share on other sites

The price in quick view is not updating when i'm increasing the quantity to meet volume discount.

For example the original price for the product is at $12, when quantity is at 5, the price will be at $10.

When I go into the product page, and chose quantity as 5, it shows $10 but when i into quick view and choose 5, it remains at $10.

How to fix this?

quickview.tpl

Share this post


Link to post
Share on other sites
On 08/03/2018 at 11:22 AM, ajaxthemestudios said:

ATS Basic Prestashop theme is a multipurpose, responsive and free Prestashop 1.7 theme suitable for all kinds of products. The theme has a clean, light and professional design. It is built using the UIkit framework. UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.  We have carefully integrated this framework with Prestashop to deliver a clean, fast, responsive and aesthetic theme that would give your online store a very simple yet professional appearance.

 

Homepage 

ss-7.thumb.jpg.91087050d2c616d2008aff2d2e0da3f0.jpg

 

Simple and Clean Product List Display

preview-1.thumb.jpg.e854197adeb1ea8ac159bf6d4946bdbd.jpg

 

Extended Top Menu

ss-3.thumb.png.ae4054f6f3f79e60f68ed0525eaa6043.png

 

Beautiful Modal Boxes

ss-1.thumb.jpg.cbcfe672ac8098f169edc40423617781.jpg

 

Clean and minimal product page design

ss-2.thumb.jpg.3219de1d60caa9790121cea93e08a1db.jpg

 

LIve Preview of Template Here - http://demo.ajaxthemestudios.com/

Quickstart installation (e.g. Replicate the demo with installation of Prestashop + Theme package) is available on request. 

DOWNLOAD THE THEME:

Version 1.0 - atsbasictheme.zip

Version 1.1.0 (latest) - ajaxbasictheme-v1.1.0.zip

More information about the theme is available HERE

 

UPDATE NOTIFICATION - 19th MAY 2018 

We have updated the theme to version 1.1.0. We fixed a few bugs and made a slight design change to the product page. We have also repackaged the theme.

To install new version, please unzipped the new downloaded package, There is a folder name "module" and the theme package - ajaxbasictheme.zip.

FIRST install the two modules inside the module folder before installing the theme to avoid missing module problem.

Thank you

 

hello could you tell me how working this template on PS 1.7.4 ? TKVM

Share this post


Link to post
Share on other sites
On 8/6/2018 at 12:57 PM, ajaxthemestudios said:

 

Hi

For full image banner, you need to edit the slider.tpl in ps_imageslider module folder inside the theme folder. Find below:


<div id="homeslider" class="uk-width-3-4@m">

Replace with :


<div id="homeslider" class="uk-width-1-1">

Make sure the ATS custom banner module is disabled.

For the legal notice, please remove it in the PS Link Module or in the CMS section of the backend.

Hello! And if instead of disabling the banner you could edit or remove the text blocks that appear even if they are empty? How can it be done?

Share this post


Link to post
Share on other sites
21 hours ago, pichuelo said:

Hello! And if instead of disabling the banner you could edit or remove the text blocks that appear even if they are empty? How can it be done?

I am not sure I understand your question. If you just want to change the content of the banner, do it through the  ATS custom banner module.

Share this post


Link to post
Share on other sites
1 hour ago, ajaxthemestudios said:

I am not sure I understand your question. If you just want to change the content of the banner, do it through the  ATS custom banner module.

I solved it by my self, just deleting the "title" "subtitle" and "description" div's, now I can use the custom banner but without the text blocks :)
My original question was because when you leave blank content in the module, the white, brown and grey blocks appear no matter what.

Regards

Share this post


Link to post
Share on other sites

Hi. I've installed it in 1.7.4.2 version and works fine.

I've been able to customize the color of buttons, text, links but I'm not able to change the red color that appears when pressing the Search button. How can I change this red color? Tks.

 

busqueda_rojo.jpg

Share this post


Link to post
Share on other sites
On 6/12/2019 at 7:27 AM, eveling said:

Hi. I've installed it in 1.7.4.2 version and works fine.

I've been able to customize the color of buttons, text, links but I'm not able to change the red color that appears when pressing the Search button. How can I change this red color? Tks.

 

busqueda_rojo.jpg

in your theme.css find .cd-overlay and replace background with anything you want.

  • Thanks 1

Share this post


Link to post
Share on other sites

ajaxthemestudios, Excellent job mate! only one i dont like in this theme is mobile menu transplant to right on left side is better for me.

Share this post


Link to post
Share on other sites
14 hours ago, asperon said:

ajaxthemestudios, Excellent job mate! only one i dont like in this theme is mobile menu transplant to right on left side is better for me.

You can do that by going to themes\atsbasictheme\templates\layout\layout-both-columns.tpl

Find this line: 

<body id="{$page.page_name}" class="{$page.body_classes|classnames}">

Apply this class:

nav-on-left

(if you want the navigation on the left side on mobile devices - to the body element above). This becomes:

<body id="{$page.page_name}" class="{$page.body_classes|classnames} nav-on-left">

Good luck!

  • Thanks 1

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More