Jump to content

VektorSoft

Members
  • Posts

    31
  • Joined

  • Last visited

Profile Information

  • Location
    Hungary
  • Activity
    User/Merchant

Recent Profile Visitors

2,630,984 profile views

VektorSoft's Achievements

Newbie

Newbie (1/14)

0

Reputation

1

Community Answers

  1. Dear Vekia, OMG, it works Just a little modification: In the css need to add this: #tabs_content_container .hideclass { display:none; } Thx your help, and have a nice night. „Polak, Węgier, dwa bratanki, i do szabli, i do szklanki.”
  2. Dear Vekia, Your soulution works fine, but there is a problem with the Extended tinyMCE rich text editor. If I click on the save button and open again (edit), the style="display:none;" style="display:block;" disappears and so doesen't work the code. This you can see on the attached screenshots. Thx your job, Gyula
  3. Dear Vekia, Thx your answer, but I'm not an expert...sorry.. I pasted the css code too, and would like ask you show me, where / what have to change. (in the css or ind script or in the <div>) Many thx, Gyula #tabs_wrapper { width: 422px; } #tabs_container { border-bottom: 1px solid #ccc; } #tabs { list-style: none; padding: 5px 0 4px 0; margin: 0 0 0 10px; font: 1em arial; } #tabs li { display: inline; } #tabs li a { border: 1px solid #ccc; padding: 4px 6px; text-decoration: none; background-color: #eeeeee; border-bottom: none; outline: none; border-radius: 5px 5px 0 0; -moz-border-radius: 5px 5px 0 0; -webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px; } #tabs li a:hover { background-color: #dddddd; padding: 4px 6px; } #tabs li.active a { border-bottom: 1px solid #fff; background-color: #fff; padding: 4px 6px 5px 6px; border-bottom: none; } #tabs li.active a:hover { background-color: #eeeeee; padding: 4px 6px 5px 6px; border-bottom: none; } #tabs li a.icon_accept:hover { padding-left: 24px; } #tabs_content_container { border: 0px solid #ccc; border-top: none; padding: 10px; height:400px; /*container hight overflow will add scrollbar*/ overflow: auto; overflow-x: auto; overflow-y: auto; }
  4. Dear everybody, First we have to change our tinyMCE rich text editor to an extended version, because we need to run script. Just follow Vekia great decription: http://www.prestashop.com/forums/topic/318425-tutorial-tinymce-rich-text-editor-extended-version/ Second here is an code, but it's 90% only, beacuse has a problem. The source: http://www.prestashop.com/forums/topic/170472-tutorial-tabs-for-cms-content/ <script type="text/javascript">// <![CDATA[ $(document).ready(function(){ // When user clicks on tab, this code will be executed $("#tabs li").click(function() { // First remove class "active" from currently active tab $("#tabs li").removeClass('active'); // Now add class "active" to the selected/clicked tab $(this).addClass("active"); // Hide all tab content $(".tab_content").hide(); // Here we get the href value of the selected tab var selected_tab = $(this).find("a").attr("href"); // Show the selected tab content $(selected_tab).fadeIn(); // At the end, we add return false so that the click on the link is not executed return false; }); }); // ]]></script> <p> </p> <div id="tabs_container"> <ul id="tabs"> <li class="active"><a href="#tab1">Tab 1 name</a></li> <li><a href="#tab2">Tab 2 name</a></li> <li><a href="#tab3">Tab 3 name</a></li> </ul> </div> <div id="tabs_content_container"> <div id="tab1" class="tab_content" style="display: block;"> <p>Tab 1 content</p> </div> <div id="tab2" class="tab_content"> <p>Tab 2 content</p> </div> <div id="tab3" class="tab_content"> <p>Tab 3 content</p> </div> </div> The problem is that, if you don't click on any tab, the first tab show the all content. If you click on someone, then will works well. I hope it can be usefull and somebody know repair the code. Thx, Gyula
  5. Dear Naldinho, Respect for your answer. Thx a lot and I'm waiting for you :-) or for somebody else answer.
  6. Hi, I have same long CMS content, so I would like show them with tabs. Like this solution, just it is not working already. (1.6.0.9) http://www.prestashop.com/forums/topic/170472-tutorial-tabs-for-cms-content/ Is it possible? Many thx, Gyula
  7. Hi, I know that, the solution is the classes\Product.php but can't solve it. My code according to my problem is: (sorry about the format) public function getAccessories($id_lang, $active = true, Context $context = null) { if (!$context) $context = Context::getContext(); $sql = 'SELECT p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity, pl.`description`, pl.`description_short`, pl.`link_rewrite`, pl.`meta_description`, pl.`meta_keywords`, pl.`meta_title`, pl.`name`, pl.`available_now`, pl.`available_later`, MAX(image_shop.`id_image`) id_image, il.`legend`, m.`name` as manufacturer_name, cl.`name` AS category_default, DATEDIFF( p.`date_add`, DATE_SUB( NOW(), INTERVAL '.(Validate::isUnsignedInt(Configuration::get('PS_NB_DAYS_NEW_PRODUCT')) ? Configuration::get('PS_NB_DAYS_NEW_PRODUCT') : 20).' DAY ) ) > 0 AS new FROM `'._DB_PREFIX_.'accessory` LEFT JOIN `'._DB_PREFIX_.'product` p ON p.`id_product` = `id_product_2` '.Shop::addSqlAssociation('product', 'p').' LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON ( p.`id_product` = pl.`id_product` AND pl.`id_lang` = '.(int)$id_lang.Shop::addSqlRestrictionOnLang('pl').' ) LEFT JOIN `'._DB_PREFIX_.'category_lang` cl ON ( product_shop.`id_category_default` = cl.`id_category` AND cl.`id_lang` = '.(int)$id_lang.Shop::addSqlRestrictionOnLang('cl').' ) LEFT JOIN `'._DB_PREFIX_.'image` i ON (i.`id_product` = p.`id_product`)'. Shop::addSqlAssociation('image', 'i', false, 'image_shop.cover=1').' LEFT JOIN `'._DB_PREFIX_.'image_lang` il ON (i.`id_image` = il.`id_image` AND il.`id_lang` = '.(int)$id_lang.') LEFT JOIN `'._DB_PREFIX_.'manufacturer` m ON (p.`id_manufacturer`= m.`id_manufacturer`) '.Product::sqlStock('p', 0).' WHERE `id_product_1` = '.(int)$this->id. ($active ? ' AND product_shop.`active` = 1 AND product_shop.`visibility` != \'none\'' : '').' GROUP BY product_shop.id_product'; if (!$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql)) return false; foreach ($result as &$row) $row['id_product_attribute'] = Product::getDefaultAttribute((int)$row['id_product']); return $this->getProductsProperties($id_lang, $result); } Where should I rewrite the code for that, that the accessories appear in the same sort on the product page, like as they are ordered in they own category in the back office . Many thx, Gyula
  8. Hello parsifal, Respect for your answer. I solved my problem with this cashonpickup.zip. If will need this because of similar reason, you can find it here: http://www.prestashop.com/forums/topic/25550-module-cash-on-pickup-for-ps-121-final/
  9. Or I just misunderstand something... the cash on delivery does mean two things too? - if I send a parcel with the post and the custumer will pay when recieve the package - and the second, if the custumer come in our store and payment there many thx, Gyula
  10. Dear spiralbean, Thx your answer, but I must ask from you that, what can I do? - My order process type: standard five steps - In the 4th, shipping section I can chose the Pick-up in store option (it's good for me) - but in the 5th section (payment) I need a payment option (not the PayPal, not the COD)...so I would like a cash payment modul Where / What can I set? Regards, Gyula
  11. Hi, Sorry...I'm sure I'm fool...but didn't find anywhere the solution.. What payment modul have I install if I like this: - I have a carrier..pick-up in store...isn't fee..etc...this OK - My custumer choose this carrier...this OK too...isn't fee But the end, when I have select a payment method in order to I can confirm the order I don't know what can I use, because: - The PayPay isn't good because the costumer will come in our store, and will pay in cash - The COD isn't good same reason..it is not a delivery I like a cash payment that I can confirm the order. What do I not good? Many thx, Gyula
  12. Hi Nemo, Thx your idea. - In the product.tlp - I've removed this {$HOOK_PRODUCT_FOOTER} - below the <!-- description and features --> secton Regards, Gyula
×
×
  • Create New...