Jump to content

fortuner

Members
  • Posts

    69
  • Joined

  • Last visited

Profile Information

  • Location
    Ukraine
  • Activity
    User/Merchant

Recent Profile Visitors

5,648,282 profile views

fortuner's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Collaborator Rare
  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

21

Reputation

  1. Google wants to show the only one page, which is canonical. Prestashop 1.7 redirects from product's canonical page to default combination page. The default combination page has the canonical tag, that points to the previous page. So what we get here is a soft redirect loop, useless canonical tag on product page and ranking loss. Here: http://forge.prestashop.com/browse/BOOM-3762 P.s. I'm SEO guy
  2. There IS a BIG SEO issue, because canonical url points on address, that redirects to default combination page. Google DOES NOT show pages with redirect in search results page, so that rel canonical is pointless. If you use PS1.7 as is, your product pages will disappear from search results, causing more frequent search queries (which are intended to categories) to loose their rankings. Go ahead to SEO thread, there are a lot of posts about sites loosing their rankings after upgrade to PS1.7
  3. I've encountered a major bug in two native modules on fresh installed Prestashop 1.7.2.1 The Viewed products and Crosselling modules don't work without any errors displayed. They install normally but no related blocks displayed in front office. I also posted a bug on forge.prestashop.com: http://forge.prestashop.com/browse/BOOM-3671 but no activity on it so far. Does anybody know how to fix this?
  4. I confirm the problem. The Viewed products block not showing Also Crosselling block doesn't work PS1.7.2
  5. Thanks! Can you give me the link? And how do you think, is there something to be removed to shrink the core.js file size? It's ridiculously large as for me. PS: You can remove the js minification in webpack.config.js in _dev folder by playing with the code ( or just deleting it ) : config.plugins.push( new webpack.optimize.UglifyJsPlugin({ sourceMap: false, compress: { sequences: true, conditionals: true, booleans: true, if_return: true, join_vars: true, drop_console: true }, output: { comments: false }, minimize: true }) ); Here is the explanation how to use webpack in PS1.7.2.0 https://www.prestashop.com/forums/topic/612908-how-to-use-webpack-with-classic-theme/?do=findComment&comment=2591297
  6. Where did you find _core directory??? I wanted to lay my hands on that code long time ago!
  7. Open Server is the best for Windows https://ospanel.io English translation (dunno if it works though) https://github.com/stden/openserver/blob/master/modules/system/langs/English.xml
  8. Well, it's obvious I've found the workaround, but it seems to me a bit lame. In /classic/_dev/js/listing.js add the code, which fires countdown after facets filter used (and of course compile it with Webpack afterwards): function updateProductListDOM (data) { $('#search_filters').replaceWith(data.rendered_facets); $('#js-active-search-filters').replaceWith(data.rendered_active_filters); $('#js-product-list-top').replaceWith(data.rendered_products_top); $('#js-product-list').replaceWith(data.rendered_products); $('#js-product-list-bottom').replaceWith(data.rendered_products_bottom); let productMinitature = new ProductMinitature(); productMinitature.init(); // The code below fires the countdown $('[data-countdown]').each(function() { var $this = $(this), finalDate = $(this).data('countdown'); $this.countdown(finalDate, function(event) { $(this).find(".days").html(event.strftime('%D')); $(this).find(".hours").html(event.strftime('%H')); $(this).find(".mins").html(event.strftime('%M')); $(this).find(".secs").html(event.strftime('%S')); }); }); } I'd like to make more elegant solution. For example save this function to object and call it with one string, or something better, but my JS skills are as lame as the code I've posted above So, If you know how to solve this, please help
  9. Hello! I'm trying to make the countdown for special price on PS1.7.2 in Classic theme. Everything works fine except Facet filter pages (which is expected ). Before facet filter use The countdown works in every page except you use Facet filter. After facet filter use I didn't find anything related to facet filter update or page reload in javascript. So how do I run my countdown after facet filter reloads page? Thanks!!!
  10. Everything is even worse than I thought. Same product page is accessible from different URLs regardless hash sign I think we have to push this issue in this thread: https://www.prestashop.com/forums/topic/480580-want-to-know-more-about-17/
  11. Here is the solution: https://www.prestashop.com/forums/topic/513701-unable-to-import-using-csv/?do=findComment&comment=2366481
  12. Marvelous! Genius! Solved all errors, thank you! PS. I had an error "unable to create friendly url"
  13. Please fix the bug with Advanced Stock Management http://forge.prestashop.com/browse/PSCSX-8284 In short words, when product is located in more than single warehouse and customer places an order which covers both stock quantities, product is removed from stock incorrectly. And please remove combination ID from product URL. Every combination page will be a double of main page with same text, pictures, etc. That would be a SEO disaster for shop ranking.
  14. What I want to see is how Prestashop becomes one standalone e-commerce software, especially for large business. This includes an accounting and stock-keeping. So please make the Advanced Stock Management more handy and fix the issues: PSCSX-7609 - No decrease stock after order multiple items in advanced stock management with more than one warehouse and PSCSX-7357 - Order only shows one warehouse in products with two location Imagine how useful Prestashop will be if you can have accounting, book-keeping and stock-keeping in one place.
  15. Hello everyone I'm trying to make a module with some settings for every order status. I'm stuck with that settings. Here is the code with comments: 1. Get state name and id. Works well, as I assume public function getOrderStatusName() { $all_states = OrderState::getOrderStates($this->context->language->id); foreach ($all_states as $state) { $statuses[] = array( 'id' => $state['id_order_state'], 'state_name' => $state['name'] ); } return $statuses; } 2. Writing values to DB, works too $statuses = $this->getOrderStatusName(); foreach ($statuses as $status) { Configuration::updateValue('STATUS_'.$status['id'], 1); } 3. Assign values and settings to Smarty. Maybe my mistake is here? public function hookDashboardZoneTwo($params) { $this->context->smarty->assign( array( 'DASHPRODUCT_NBR_SHOW_LAST_ORDER' => Configuration::get('DASHPRODUCT_NBR_SHOW_LAST_ORDER'), 'date_from' => Tools::displayDate($params['date_from']), 'date_to' => Tools::displayDate($params['date_to']), 'exportorders_config_form' => $this->renderConfigForm(), ) ); $statuses = $this->getOrderStatusName(); foreach ($statuses as $status) { $this->context->smarty->assign( array( 'STATUS_'.$status['id'] => Configuration::get('STATUS_'.$status['id']) ) ); } return $this->display(__FILE__, 'exportorders.tpl'); } 4. Displaying settings switches in modules BackOffice. And here I have troubles. Switches are displayed, but smarty throws error: "undefined index "name"" $statuses = $this->getOrderStatusName(); $status_options = array( array( 'id' => 'status_on', 'value' => 1, 'label' => $this->l('Yes')), array( 'id' => 'status_off', 'value' => 0, 'label' => $this->l('No')), ); foreach ($statuses as $status) { $fields_form['form']['input'][] = array( 'id' => $status['id'], 'type' => 'switch', 'label' => $status['state_name'], 'name' => 'STATUS_'.$status['id'], 'is_bool' => true, 'values' => $status_options, ); } 5. And finally loading settings from DB $statuses = $this->getOrderStatusName(); foreach ($statuses as $status) { $config1 = array('STATUS_'.$status['id'] => Configuration::get('STATUS_'.$status['id'])); array_merge($config, $config1); } Where am I mistaking? As for me it should work, but it doesn't I attach the module itself if you can help meexportorders.zip
×
×
  • Create New...