Jump to content

igor.i

Members
  • Posts

    11
  • Joined

  • Last visited

Profile Information

  • Activity
    Project Owner

igor.i's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks for the reply and the suggestion, PascalVG. I tried removing any of both {else} tags, but the results are not good. Will create a localhost envoriment soon and will let you know. Best regards, II
  2. Greetings, I would like to assign different image size of a product, according to Category: for the Packages (category ID = 261), the image size should be larger than the assigned size for other products/titles. I added new category in Images (see att. ), "box_default_pack" (no.9, 900x467px.) and then added the following code in themes/default/product.tpl, at lines 178-189: {if $have_image} {if $Category->id == 261} <span id="view_full_size"> <img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')}" {if $jqZoomEnabled}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'box_default_pack')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic" width="{$largeSize.width}" height="{$largeSize.height}" /> <span class="span_link">{l s='View full size'}</span> </span> {else} <span id="view_full_size"> <img src="{$img_prod_dir}{$lang_iso}-default-large_default.jpg" id="bigpic" alt="" title="{$product->name|escape:'htmlall':'UTF-8'}" width="{$largeSize.width}" height="{$largeSize.height}" /> <span class="span_link">{l s='View full size'}</span> </span> {/if} {else} <span id="view_full_size"> <img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')}" {if $jqZoomEnabled}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_default')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic" width="{$largeSize.width}" height="{$largeSize.height}" /> <span class="span_link">{l s='View full size'}</span> </span> {else} <span id="view_full_size"> <img src="{$img_prod_dir}{$lang_iso}-default-large_default.jpg" id="bigpic" alt="" title="{$product->name|escape:'htmlall':'UTF-8'}" width="{$largeSize.width}" height="{$largeSize.height}" /> <span class="span_link">{l s='View full size'}</span> </span> {/if} Unfortunately, I am testing this online and can not see where the error is - all I get is a blank page. If I am to assign smarty code, where (in which file/s) should I do it, and what the code should be? I apologize if this has been answered; I did my best to find the answer. I am using PrestaShop™ 1.5.3.1 Any help would be much appreciated!
  3. hello @Suthichai if you are able, can you please let me know which charaters to remove from the define('PREG_CLASS_SEARCH_EXCLUDE', for cyrillic letters? i tried to find the according codes via wikipedia, but with no success. (i did rebuild the index, tho). using presta 1.5.3.1 thanks in advance!
  4. EDIT: (disregard the message bellow) - clean install of ps 152, imported db, upgraded to 1.5.3.1. works. I still have "An error occurred while creating object. product" Using ps 1.5.3.1. The database was populated in ps 1.5.2.0, then imported via myphpadmin. I tried the following, nothing works: 1: alter table ps_product add column redirect_type int (10) ;# 449 rows affected. alter table ps_product_shop add column redirect_type int (10) ;# 449 rows affected. 2: alter table ps_product DROP column redirect_type ; alter table ps_product_shop DROP column redirect_type ; 3: ALTER TABLE ps_product ADD `redirect_type` ENUM('', '404', '301', '302') NOT NULL DEFAULT '' AFTER `active` ; ALTER TABLE ps_product_shop ADD `redirect_type` ENUM('', '404', '301', '302') NOT NULL DEFAULT '' AFTER `active` ; Help, anyone? Please? Server information Server information: Windows NT build 7601 (Windows 7 Ultimate Edition Service Pack 1) AMD64 Server software version: Apache/2.4.2 (Win64) PHP/5.4.3 PHP version: 5.4.3 Memory limit: 128M Max execution time: 30 Database information MySQL version: 5.5.24-log MySQL engine: InnoDB Tables prefix: ps_ Store information Prestashop version: 1.5.3.1 Shop URL: http://localhost:8080/presta_n/ Current theme in use: default
  5. EDIT: (disregard the message bellow) - clean install of ps 152, imported db, upgraded to 1.5.3.1. works. In Presta 1.5.3.1 I have a problem with adding and modifying products: - An error occurred while updating object. product () I tried the following, nothing works: 1: alter table ps_product add column redirect_type int (10) ;# 449 rows affected. alter table ps_product_shop add column redirect_type int (10) ;# 449 rows affected. 2: alter table ps_product DROP column redirect_type ; alter table ps_product_shop DROP column redirect_type ; 3: ALTER TABLE ps_product ADD `redirect_type` ENUM('', '404', '301', '302') NOT NULL DEFAULT '' AFTER `active` ; ALTER TABLE ps_product_shop ADD `redirect_type` ENUM('', '404', '301', '302') NOT NULL DEFAULT '' AFTER `active` ; The DB was populated using Presta 1.5.2. As you can see, there are 449 products. Any suggestion, please?
  6. @epicos, @billyhc: this means that the column 'redirect_type' already exist in your db.
  7. Hello everyone, I am working on a multilingual bookstore, and I would like to have the Shop name (Displayed in e-mails and page titles) in at least two languages. Using PrestaShop 1.5.2, with translation module and packs. I did some editing on the Header.tpl file (deafult theme), using if clause for the lang_iso, but the results are not satisfactory: if I leave the Shop name empty, it produces empty fields. If i have the Shop name in one language (English, for ex.), the appearance is not logical. I would not like to go into hacking the database, also. Any ideas? Thanks a lot in advance!
  8. kapees, you need to edit the modules\homefeatured\homefeatured.css file in order to get the 'new' sticker correctly displayed over the product image. try mine for testing, i hope it will help: #featured-products_block_center .product_image span.new { display: block; position: absolute; top: 7px; right:4px; padding: 2px 3px 2px 2px; width: 70px; font-size:11px; font-weight:bold; color: #fff; text-align: right; text-transform: uppercase; -moz-transform: rotate(90deg); -webkit-transform: rotate(90deg); -o-transform:rotate(90deg); -ms-transform: rotate(90deg); background-color: #990000 } padding, top, right are the values you need to adjust in your css.
  9. My question, too! Anyone to help us on this? Many thanks!
×
×
  • Create New...