Jump to content

 

straygecko

Member Since 01 May 2013
Offline Last Active Jan 18 2019 05:35 PM
-----

Posts I've Made

In Topic: Ups Shipping - Residential Vs Commercial

24 December 2018 - 01:06 AM

cs-cart used the UPS api properly in 4.4.3 and prior and would let UPS determine the address type and charge the correct shipping based on the address type.  They introduced a bug in the rewrite of the UPS api in 4.5.1 and stuck the address lines in the wrong element so UPS ignores it.  I opened a bug report here:

 

https://forum.cs-car...-using-address/

 

The bug is in app/Tygh/Shippings/Services/Ups.php lines 346 and 348.  Change $rating_request['Shipment']['ShipTo'] to $rating_request['Shipment']['ShipTo']['Address'] in both lines and correct rates will be charged based on whether the address is residential or commercial.


In Topic: Make Top Panel Floating

03 May 2018 - 06:52 PM

You need a little bit more. From the doc on microformats https://docs.cs-cart...croformats.html

cm-sticky-scroll - fixes a block in which it is used. In data-ce-top the distance scrolled from the upper end of the page till a block is fixed is specified. In data-ce-padding the distanse from the upper end of the screen to the fixed block is specified.

Format:

<div class="subnav cm-sticky-scroll" data-ce-top="100" data-ce-padding="20" >

When the window is crolled down for 100px, the panel will be fixed at the distanse of 20px from its upper end.

In Topic: Ssl In Loop

04 April 2018 - 02:33 PM

Sounds like your .htaccess file is forcing SSL. Possibly done by the Let's Encrypt install and not reversed?

In Topic: Can't Execute Function In My_Changes Func.php - Unknown Modifier

03 April 2018 - 02:55 PM

Hmmm.... Both your original test and the modified one based on input here seem to behave the same - func.php is not getting picked up, in the new test perhaps both init.php and func.php aren't getting picked up. You're not spelling out the complete path to files so lets start with basics to be sure you have init.php and func.php in the right place as you show both php and tpl hook code in just \addons. init.php and func.php go in \app\addons\my_changes\ Template overrides go in \design\themes\yourtheme\templates\addons\my_changes\

In Topic: Critical Cs-Cart Vulnerability: Please Protect Your Store Asap

02 April 2018 - 01:25 AM

Line 98 of what file?


I'm sure he's talking about app/Tygh/bootstrap.php, the file the OP is telling him to patch to fix the security vulnerability caused by cs-cart incorrectly identifying console mode and causing the CONSOLE constant to be set incorrectly. The real questions is why line 98? The OP says to look for a particular string not a particular line. The line to be patched is the first line of function initConsoleMode - its line 167 of app/Tygh/bootstrap.php in the couple of versions I looked at.