Jump to content
thirty bees forum

papagino

Trusted Members
  • Posts

    169
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by papagino

  1. Thanks for your reply, I do have a blog and share its content on facebook. However, I would like to have visitors/customers to be able to share CMS content on their facebook page to bring more traffic to my site... Cheers
  2. Hey Y'all, Is there a way to have "Block Facebook Share" button to also appear on CMS pages other than just on product pages? Right now, the "Share on Facebook!" is displayed on Product pages but I would also like to have it displayed on CMS pages. Is there a way to do this?
  3. Ok I created a custom.css file as shown below, however, it doesn't change the modifications for the blocktopmenu module. How to I make it work also for the blocktopmenu module? @charset "UTF-8"; /*! * Bootstrap v3.3.6 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/bootstrap/blob/master/LICENSE) */ /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ a { color: #2C83B7; !important; text-decoration: none; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: #2C83B7; !important; } .block .title_block { color: #2C83B7; !important; font-size: 16px; line-height: 1.42857143; font-weight: 700; margin: 0 0 20px; padding: 10px 0; text-transform: uppercase; } #footer .footer-title, #footer .title_block { font-size: 16px; color: #2C83B7; !important; font-weight: 300; } .sf-menu > li > a { font-weight: 600; font-size: 16px; line-height: 22px; text-transform: lowercase; !important; color: #2C83B7; !important; display: block; padding: 10px 10px; !important; letter-spacing: 3px; } .sf-menu > li.sfHover > a, .sf-menu > li > a:hover, .sf-menu > li.sfHoverForce > a { background: #2C83B8; !important; border-bottom-color: #666666; color: white; !important; }
  4. When viewing the page source, I see that the "/themes/niara/css/autoload/superfish-modified.css" loads before the original "/themes/niara/css/modules/blocktopmenu/css/blocktopmenu.css", so I guess you're right, since the original loads after the autoload, it override it... <link rel="stylesheet" href="/themes/niara/css/global.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/autoload/compatibility.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/autoload/font-raleway.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/autoload/global.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/autoload/superfish-modified.css" type="text/css" media="all" > <link rel="stylesheet" href="/js/jquery/plugins/fancybox/jquery.fancybox.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/product_list.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/category.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/scenes.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/modules/beesblog/views/css/beesblogstyle.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/modules/blockcart/blockcart.css" type="text/css" media="all" > <link rel="stylesheet" href="/js/jquery/plugins/bxslider/jquery.bxslider.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/modules/blocksocial/blocksocial.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/modules/blockcategories/blockcategories.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/modules/blockcurrencies/blockcurrencies.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/modules/blocklanguages/blocklanguages.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/modules/blocknewsletter/blocknewsletter.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/modules/blocksearch/blocksearch.css" type="text/css" media="all" > <link rel="stylesheet" href="/js/jquery/plugins/autocomplete/jquery.autocomplete.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/modules/blockspecials/blockspecials.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/modules/blocktags/blocktags.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/modules/blockuserinfo/blockuserinfo.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/modules/blockviewed/blockviewed.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/modules/homefeatured/homefeatured.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/modules/blocktopmenu/css/blocktopmenu.css" type="text/css" media="all" > <link rel="stylesheet" href="/themes/niara/css/modules/blocktopmenu/css/superfish-modified.css" type="text/css" media="all"
  5. ... just tried adding subfolders (themes/niara/css/autoload/modules/blocktopmenu/css/superfish-modified.css) and it doesn't work. So, how do I make the modified CSS for modules/blocktopmenu/css/superfish-modified.css to load without modifying the core file itself?
  6. Ok, I copied the modified global.css file in the directory: themes/niara/css/autoload/global.css. This seems to work , however the one for the blocktopmenu module "themes/niara/css/modules/blocktopmenu/css/superfish-modified.css" is not. Do I have to create subdirectories under the autoload directory and put the modified css in this directory? Like this: themes/niara/css/autoload/modules/blocktopmenu/css/superfish-modified.css ? Please advise... Cheers
  7. Hello wonderful people... I have modified the "themes/niara/css/global.css" and "themes/niara/css/modules/blocktopmenu/css/superfish-modified.css" files (after creating a backup of the files) of the niara theme to change the look of my shop, however this is not good practice as those modified CSS files will be overwrite on every updates. I have never create overrides before, so how do I create overrides for those two css files so they would be used by my shop without modifying the core files? This way, updating Thirtybees will not effect the look of my current shop. Cheers
  8. Ok, I also noticed that on CMS Categories previously created with TB 1.5.1, when you would create CMS Block for those categories and click on the titles for the blocks, you would get the descriptions then under it would say: List of pages in (The category Names) and under would be listed links for all the CMS pages under those categories. It doesn't do this anymore, it only shows the description. Is this a change under TB 1.6?
  9. I think I found a bug for the new Thirtybees 1.6.0. If you create a new CMS Category and fill in the description, the text that will show in the front office will be the PHP "source code" instead of just the text. If you look for the listings of CMS category created in the Backoffice, you will also see this under the description column as below: Here's what shows up on the front office : Can anyone replicate this? Is this a bug under TB 1.6.0? Please note that the CMS Categories that were previously created under TB 1.5.1 are displaying correctly, the problem is only with new CMS categories created under TB 1.6.0... Cheers
  10. Yea, I guess it's not a good idea to do an upgrade just when it becomes available, probably better to wait a couple weeks... It is almost impossible for those guys (developer) to absolutely test everything without missing some things. The best way to contribute is to report the bugs you found so it can be looked at. Cheers
  11. I actually used this module to create 2 new payment methods, one is Pay in 30 Days payment option for some of my resellers (modified Pay by Check module). The second one is "Interac Email Money Transfer", a payment option available in Canada that allows customers to pay via bank electronic money transfer... Glad I was able to contribute a bit by identifying something that was missed... Cheers
  12. OK, that fixed the problem... So, is this a bug in version 1.6? Does it has anything to do with me changing image format from jpg to webp? Thanks for your help, you're a PRO.
  13. Hello guys, I had created a "Custom Payment Methods" under Thirtybees 1.5.1 and after upgrading to TB 1.6.0, I can no longer access the "Custom Payment Methods" module using "Modules and Services/Custom Payment Methods" in the Backoffice, instead I am getting a "500 Server Error" page. However, this Custom Payment Methods is still available in the payment options for my customers. This is the error I get from the error logs: Exception Message: Fatal Error: Declaration of AdminCustomPaymentsController::uploadImage($id, $name, $dir, $ext = false, $width = null, $height = null) must be compatible with AdminControllerCore::uploadImage($id, $name, $path, $imageExtension = false, $width = null, $height = null, $generateImageTypes = []) Location: modules/custompayments/controllers/admin/AdminCustomPayments.php line 429 Here is the line 429 in the AdminCustomPayments.php file. protected function uploadImage($id, $name, $dir, $ext = false, $width = null, $height = null) I did changed my images format from jpg to webp after the upgrade, but I don't think this is the cause. Any ideas what could cause this?
  14. Yep, that was it. I did not turn on this option, it was set by default I think. Thanks a lot, you're a PRO. Cheers
  15. I just upgrade Thirtybees from 1.5.1 to 1.6 and this cause all my category images to be very small after selecting wepb format from previous jpg images. I did regenerate all thumbnails and made sure that the size set for category was like it was before (870px by 217px) as image below. I also tried deleting and re-uploading the category images to see if this would fix the problem, but it did not. What could cause this problem?
  16. Not sure what you mean with the statement above, should I replace the override/classes/Carrier.php with a new tb core one, then modify the line as above? Also, I am using a purchased Canada Post Module called: Canada Post: Rates and Estimator v4.2.1 - by ZH Media. Will this effect the functionality of it? Probably not...
  17. Line 84 is: $error = array_merge($error, $carrier_error);
  18. <?php class Carrier extends CarrierCore { public static function getAvailableCarrierList(Product $product, $id_warehouse, $id_address_delivery = null, $id_shop = null, $cart = null, &$error = array()) { static $ps_country_default = null; if ($ps_country_default === null) $ps_country_default = Configuration::get('PS_COUNTRY_DEFAULT'); if (is_null($id_shop)) $id_shop = Context::getContext()->shop->id; if (is_null($cart)) $cart = Context::getContext()->cart; $id_address = (int)((!is_null($id_address_delivery) && $id_address_delivery != 0) ? $id_address_delivery : $cart->id_address_delivery); if ($id_address) { $id_zone = Address::getZoneById($id_address); // Check the country of the address is activated if (!Address::isCountryActiveById($id_address)) return array(); } else { // changed for Presto-Changeo carrier modules ---> $cookie = Context::getContext()->cookie; $cookie_country = $cookie->id_country ? $cookie->id_country : $cookie->pc_dest_country; $country = new Country((isset($cookie_country) && strlen($cookie_country) ? $cookie_country : $ps_country_default)); // <--- changed for Presto-Changeo carrier modules $id_zone = $country->id_zone; } // Does the product is linked with carriers? $cache_id = 'Carrier::getAvailableCarrierList_'.(int)$product->id.'-'.(int)$id_shop; if (!Cache::isStored($cache_id)) { $query = new DbQuery(); $query->select('id_carrier'); $query->from('product_carrier', 'pc'); $query->innerJoin('carrier', 'c', 'c.id_reference = pc.id_carrier_reference AND c.deleted = 0 AND c.active = 1'); $query->where('pc.id_product = '.(int)$product->id); $query->where('pc.id_shop = '.(int)$id_shop); $carriers_for_product = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($query); Cache::store($cache_id, $carriers_for_product); } else $carriers_for_product = Cache::retrieve($cache_id); $carrier_list = array(); if (!empty($carriers_for_product)) { //the product is linked with carriers foreach ($carriers_for_product as $carrier) //check if the linked carriers are available in current zone if (Carrier::checkCarrierZone($carrier['id_carrier'], $id_zone)) $carrier_list[$carrier['id_carrier']] = $carrier['id_carrier']; if (empty($carrier_list)) return array();//no linked carrier are available for this zone } // The product is not dirrectly linked with a carrier // Get all the carriers linked to a warehouse if ($id_warehouse) { $warehouse = new Warehouse($id_warehouse); $warehouse_carrier_list = $warehouse->getCarriers(); } $available_carrier_list = array(); $cache_id = 'Carrier::getAvailableCarrierList_getCarriersForOrder_'.(int)$id_zone.'-'.(int)$cart->id; if (!Cache::isStored($cache_id)) { $customer = new Customer($cart->id_customer); $carrier_error = array(); $carriers = Carrier::getCarriersForOrder($id_zone, $customer->getGroups(), $cart, $carrier_error); Cache::store($cache_id, array($carriers, $carrier_error)); } else list($carriers, $carrier_error) = Cache::retrieve($cache_id); $error = array_merge($error, $carrier_error); foreach ($carriers as $carrier) $available_carrier_list[$carrier['id_carrier']] = $carrier['id_carrier']; if ($carrier_list) $carrier_list = array_intersect($available_carrier_list, $carrier_list); else $carrier_list = $available_carrier_list; if (isset($warehouse_carrier_list)) $carrier_list = array_intersect($carrier_list, $warehouse_carrier_list); $cart_quantity = 0; foreach ($cart->getProducts(false, $product->id) as $cart_product) if ($cart_product['id_product'] == $product->id) $cart_quantity += $cart_product['cart_quantity']; if ($product->width > 0 || $product->height > 0 || $product->depth > 0 || $product->weight > 0) { foreach ($carrier_list as $key => $id_carrier) { $carrier = new Carrier($id_carrier); // Get the sizes of the carrier and the product and sort them to check if the carrier can take the product. $carrier_sizes = array((int)$carrier->max_width, (int)$carrier->max_height, (int)$carrier->max_depth); $product_sizes = array((int)$product->width, (int)$product->height, (int)$product->depth); rsort($carrier_sizes, SORT_NUMERIC); rsort($product_sizes, SORT_NUMERIC); if (($carrier_sizes[0] > 0 && $carrier_sizes[0] < $product_sizes[0]) || ($carrier_sizes[1] > 0 && $carrier_sizes[1] < $product_sizes[1]) || ($carrier_sizes[2] > 0 && $carrier_sizes[2] < $product_sizes[2])) { $error[$carrier->id] = Carrier::SHIPPING_SIZE_EXCEPTION; unset($carrier_list[$key]); } if ($carrier->max_weight > 0 && $carrier->max_weight < $product->weight * $cart_quantity) { $error[$carrier->id] = Carrier::SHIPPING_WEIGHT_EXCEPTION; unset($carrier_list[$key]); } } } return $carrier_list; } }
  19. Disable all overrides seems to have fixed the problems... Investigating further...
  20. Ok just updated and same problem, here is the error Exception I got:
  21. Ok, I will place my shop under maintenance and try again, then I will post the error logs... Doing a backup now...
×
×
  • Create New...