🚀 Hostinger Optimized
🖥️ Server: LiteSpeed
💻 System: Linux s20058.bom1.stableserver.net 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
👤 User: skhata (1324)
🐘 PHP: 8.4.20
🚫 Disabled: ✨ NONE

💻 Terminal

📁 /home/skhata/chandrasons.com/public
$

📄 CartCookie.xml

📁 Path: //opt/a2-optimized/opencart/CartCookie.xml
📊 Size: 1.2 KB
🔒 Perm: 0644
📝 MIME: text/plain
<modification>
    <name>CartCookie by A2 Hosting</name>
    <version>1.0</version>
    <link>http://a2hosting.com</link>
    <author>Benjamin Cool</author>
    <code>a2hosting_cartcookie_ocmod</code>
    <file path="system/library/cart.php">
        <operation>
            <search ><![CDATA[return $product_total]]></search>
            <add position="before"><![CDATA[

            if($product_total > 0){
                setcookie('cart', true, time() + ( 365 * 86400 ));
            }
            else{
                if(isset($_COOKIE['cart'])){
                    setcookie('cart', false, time() - 3600);
                }
            }

            ]]></add>
        </operation>


    </file>
    <file path="system/library/user.php">
        <operation>
            <search ><![CDATA[public function isLogged() {]]></search>
            <add position="after"><![CDATA[
        if(isset($this->user_id) && $this->user_id >=0){
            setcookie('logged_in', true, time() + ( 365 * 86400 ));
        }
        else{
            if(isset($_COOKIE['logged_in'])){
                setcookie('logged_in', false, time() - 3600 );
            }
        }
            ]]></add>
        </operation>
    </file>
</modification>
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨