v1.6-v1.7-v8x Rock POS - The Best Point of Sale System 4.6.0 NULLED

unique

Well-known member
Diamond
Elite
XNullUser
Joined
Dec 12, 2020
Messages
2,137
Reaction score
427
Points
83
NullCash
416
Thank you bro for sharing with us!
 

ilias00

Active member
Elite
XNullUser
Joined
Nov 22, 2019
Messages
171
Reaction score
241
Points
43
NullCash
33
Thank you bro for sharing with us@
 

coldeye

Member
XNullUser
Joined
May 21, 2021
Messages
56
Reaction score
0
Points
6
NullCash
6
Thank you very much for this module. Great to see there are some professionals here who can null these files.
 

pantakos

New member
XNullUser
Joined
Jan 19, 2023
Messages
7
Reaction score
0
Points
1
Location
gr
NullCash
2
Thank you for your effort ! This will help a lot!
 

chibi

Active member
Elite
XNullUser
Joined
Aug 12, 2021
Messages
128
Reaction score
213
Points
43
NullCash
167
The module code is crappy, too.

This is how should looks like an example of standard override cart.php code, proper :


PHP:
<?php
if (!defined('_PS_VERSION_')) { exit; }
class Cart extends CartCore
{
    /*
    * module: ets_onepagecheckout
    * date: 2024-08-15 01:52:11
    * version: 2.7.8
    */
    public function getPackageList($flush = false)
    {
        if(($address_type =  Tools::getValue('address_type')) && $address_type=='shipping_address')
            $this->id_address_delivery = (int)Tools::getValue('id_address',$this->id_address_delivery);
        return parent::getPackageList($flush);
    }
    /*
    * module: ets_onepagecheckout
    * date: 2024-08-15 01:52:11
    * version: 2.7.8
    */
    public function getPackageShippingCost($id_carrier = null, $use_tax = true, Country $default_country = null, $product_list = null, $id_zone = null, bool $keepOrderPrices = false)
    {
        if($IDzone = (int)Hook::exec('actionGetIDZoneByAddressID'))
        {
            $id_zone = $IDzone;
        }
      
        return parent::getPackageShippingCost($id_carrier,$use_tax,$default_country,$product_list,$id_zone, $keepOrderPrices);
    }
}


Now, this is the crappy code generated by Rock POS module wich erasing any old code after resetting himself (necessary for working), and this crappy code don't let you install many others modules :

PHP:
<?php
/**
* RockPOS - Point of Sale for PrestaShop.
*
* @author    Hamsa Technologies
* @copyright Hamsa Technologies
* @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*/
if (!defined('_PS_VERSION_')) {
    exit;
}
use PrestaShop\PrestaShop\Adapter\ServiceLocator;

class Cart extends CartCore
{
    public function getProducts($refresh = false, $id_product = false, $id_country = null, $fullInfo = true, bool $keepOrderPrices = false)
    {
        if (Tools::version_compare(_PS_VERSION_, '1.7', '<')) {
            if (!$this->id) {
                return array();
            }
            // Product cache must be strictly compared to NULL, or else an empty cart will add dozens of queries
            if ($this->_products !== null && !$refresh) {
                // Return product row with specified ID if it exists
                if (is_int($id_product)) {
                    foreach ($this->_products as $product) {
                        if ($product['id_product'] == $id_product) {
                            return array($product);
                        }
                    }
                    return array();
                }
                return $this->_products;
            }

            // Build query
            $sql = new DbQuery();

            // Build SELECT
            $sql->select('cp.`id_product_attribute`, cp.`id_product`, cp.`quantity` AS cart_quantity, cp.id_shop, pl.`name`, p.`is_virtual`,
                             pl.`description_short`, pl.`available_now`, pl.`available_later`, product_shop.`id_category_default`, p.`id_supplier`,
                             p.`id_manufacturer`, product_shop.`on_sale`, product_shop.`ecotax`, product_shop.`additional_shipping_cost`,
                             product_shop.`available_for_order`, product_shop.`price`, product_shop.`active`, product_shop.`unity`, product_shop.`unit_price_ratio`,
                             stock.`quantity` AS quantity_available, p.`width`, p.`height`, p.`depth`, stock.`out_of_stock`, p.`weight`,
                             p.`date_add`, p.`date_upd`, IFNULL(stock.quantity, 0) as quantity, pl.`link_rewrite`, cl.`link_rewrite` AS category,
                             CONCAT(LPAD(cp.`id_product`, 10, 0), LPAD(IFNULL(cp.`id_product_attribute`, 0), 10, 0), IFNULL(cp.`id_address_delivery`, 0)) AS unique_id, cp.id_address_delivery,
                             product_shop.advanced_stock_management, ps.product_supplier_reference supplier_reference');
[...]
}

Full bad code is in file :
 

Attachments

  • bad ROCK POS cart.php.txt
    35.3 KB · Views: 0

josean

Member
XNullUser
Joined
Apr 15, 2022
Messages
337
Reaction score
1
Points
18
NullCash
3
Thank you for sharing the updated version
 

Choupy

Well-known member
Master
Diamond
Elite
Joined
Jun 19, 2019
Messages
1,211
Reaction score
1,475
Points
113
NullCash
17
hello bro thank you for this sharing...
 

bambo

Member
XNullUser
Joined
Feb 28, 2022
Messages
64
Reaction score
2
Points
8
NullCash
2
Gracias por el aporte. Vamos a probarlo.
 
Top