News:

Support the VirtueMart project and become a member

Main Menu

Recent posts

#1
Quote from: Milbo on Today at 08:55:02 AMyes, that sounds like a plan. But I have no fast answer how todo it.
Ah that's a shame. I will try to find if I can somehow fix it myself by checking all the files, I hoped you could point me to the files itself.. I will just chekc the view files first, then the controller files and then the model files. Thanks for the reply.
#2
Quote from: Milbo on Yesterday at 21:35:45 PMIf you store a parent, which has the extra tab for children, than it takes this values for the children.

that works most time correctly, but if someone buys something meanwhile, it wont work 100%.

But that is a common problem for our stock feature.

Thanks Max, for now I added the logging. But there is one thing that bothers me in this logging that is that when you log it it will show that the child products get set to 0 and then after it somewhere else sets the child products back to it's current stock values again. But I'd like to log that as well, do you know where I can find it?
#3
yes, that sounds like a plan. But I have no fast answer how todo it.
#4
When you remove a custom field, it also removes them from database and thus from the already made orders itself. This makes it so custom fields where the customer paid for is not in the order itself anymore which is not good for order management.

This bug is already a long time here, and I think it's time to smash this one. I think I have the solution at hand.

- Enable the []d checkbox that is also on child products to disable custom fields for the parent
- Make sure to keep including them in the admin backend to not let virtuemart completely remove the custom field

You can set the disabler from the custom field to 1 in the database, this will disable the field but not remove them. BUT, the custom fields also won't display in the backend, which is a huge problem because if you save the parent product (which doens't display the disabled field) it will remove the custom field from the dataabase. My fixes would be to enable the []d checkbox, but also keep showing all the fields in the backend, even if it's disabled.

@Milbo
#5
I have problem:

The quantity, name, SKU of products (item) not show on orderdone, order infomation page (front end) Both on orders page  (backend)

Payment method: standad
Shipment by weight, zip
Testing on Xampp
 
-PHP-Version 8.2.12
-Joomla 5.1.0
- Virtuemart 4.2.12.11012

debug
Backend

1 vmdebug Show All Errors, PHP-Version 8.2.12
2 vmdebug 1 Language, default shoplanguage (VmConfig::$jDefLang): vi_vn vi-VN
3 vmdebug vmTime: time to load config param $lang=1 and iniLang=0 $exeTrig = 0 now = 1: 0.0204181671142578
4 vmdebug Set router vars Input Get, Post Var0:
5 vmdebug Set router vars self::$get, Post, self::$request Var0:

6 vmdebug Start used Ram 32M
7 vmdebug BE main controller with controller orders and task orders
8 vmdebug exeSortSearchListQuery my $limitStart 0 $limit 0 q Var0:
9 vmdebug exeSortSearchListQuery result Var0:
10 vmdebug Defining custom function convertfromcurrency
11 vmdebug Defining custom function converttocurrency
12 vmdebug exeSortSearchListQuery my $limitStart 0 $limit 30 q Var0:
13 vmdebug exeSortSearchListQuery result Var0:

14 vmdebug exeSortSearchListQuery my $limitStart 0 $limit 0 q Var0:

15 vmdebug exeSortSearchListQuery result Var0:

16 vmdebug Get user, using given id 292
17 vmdebug Get user id 292
18 vmdebug VmViewAdmin addTemplatePath vmadmin
19 vmdebug checkSafePathBase return cached C:\xampp\htdocs\matkinh\administrator\components\com_virtuemart\su4ULI2CtosK19K0cMemt\
20 vmdebug getPagesLinks Var0:
C:\xampp\htdocs\matkinh/administrator/templates/atum/html/pagination.php
21 vmdebug vmTime: "VirtueMartControllerOrders" Finished task orders: 0.609486103057861
22 vmdebug End used Ram 36M
23 vmdebug Peak memory peak 36M
 
Fronted
271 vmdebug Building segments from initial query: Var0:
Array
(
    [option] => com_virtuemart
    [view] => productdetails
    [manage] => 1
    [managing] => 0
    [Itemid] => 605
    [limitstart] => 0
    [virtuemart_product_id] => 1808
    [virtuemart_category_id] =>
    [lang] => vi-VN
)
272 vmdebug vmRouter case 'productdetails' Itemid
273 vmdebug Building segments from query, left: Var0:
Array
(
    [non_segmented_query] => Array
        (
            [option] => com_virtuemart
            [manage] => 1
            [Itemid] => 605
            [lang] => vi-VN
        )

    [segments] => Array
        (
           
  • => kinh-mat-rayban-rb3447-9001a5-53-detail
        )

)

ADDTOCART click
My Memory Limit in MB 507Get user, using given id 0Get user id 0VmView loaded with overridesetCartIntoSession restart sessionsetActiveMenu Var0:

402
Var1:
402
setMenuItemId Var0:
Array
(
    [virtuemart_category_id] => Array
        (
            [44] => Array
                (
                   
  • => 257
                )

            [45] => Array
                (
                   
  • => 259
                )

            [52] => Array
                (
                   
  • => 260
                )

            [49] => Array
                (
                   
  • => 262
                )

            [43] => Array
                (
                   
  • => 266
                )

            [48] => Array
                (
                   
  • => 268
                )

            [46] => Array
                (
                   
  • => 270
                )

            [47] => Array
                (
                   
  • => 271
                )

            [23] => Array
                (
                   
  • => 528
                )

            [19] => Array
                (
                   
  • => 529
                )

            [34] => Array
                (
                   
  • => 533
                )

            [13] => Array
                (
                   
  • => 278
                )

            [32] => Array
                (
                   
  • => 534
                )

            [7] => Array
                (
                   
  • => 279
                )

            [30] => Array
                (
                   
  • => 535
                )

            [27] => Array
                (
                   
  • => 540
                )

            [26] => Array
                (
                   
  • => 487
                )

            [25] => Array
                (
                   
  • => 488
                )

            [11] => Array
                (
                   
  • => 495
                )

            [2] => Array
                (
                   
  • => 496
                )

            [12] => Array
                (
                   
  • => 497
                )

            [35] => Array
                (
                   
  • => 498
                )

            [36] => Array
                (
                   
  • => 500
                )

            [37] => Array
                (
                   
  • => 501
                )

            [3] => Array
                (
                   
  • => 503
                )

           
  • => Array
                (
                   
  • => 0
                )

        )

    [manufacturer] => 782
    [cart] => Array
        (
            [standard] => 530
        )

    [productdetails] => 275
    [virtuemart] => 605
    [virtuemart_manufacturer_id] => Array
        (
            [5] => 607
            [16] => 608
            [23] => 656
            [58] => 920
            [29] => 252
            [56] => 253
            [57] => 254
        )

)
Building segments from initial query: Var0:
Array
(
    [option] => com_virtuemart
    [view] => category
    [virtuemart_category_id] => 43
    [Itemid] => 402
    [lang] => vi-VN
)
my category build route Var0:
Array
(
    [option] => com_virtuemart
    [virtuemart_category_id] => 43
    [Itemid] => 402
    [lang] => vi-VN
)
category link segments Var0:
Array
(
    [option] => com_virtuemart
    [Itemid] => 266
    [lang] => vi-VN
)
Var1:
Array
(
)
Building segments from query, left: Var0:
Array
(
    [non_segmented_query] => Array
        (
            [option] => com_virtuemart
            [Itemid] => 266
            [lang] => vi-VN
        )

    [segments] => Array
        (
        )

)
My preprocess $Itemid Var0:
605
Building segments from initial query: Var0:
Array
(
    [option] => com_virtuemart
    [view] => cart
    [Itemid] => 605
    [lang] => vi-VN
)
Building segments from query, left: Var0:
Array
(
    [non_segmented_query] => Array
        (
            [option] => com_virtuemart
            [Itemid] => 605
            [lang] => vi-VN
        )

    [segments] => Array
        (
           
  • => cart
        )

)
EDITE Payment method page

Warning: openssl_decrypt(): IV passed is only 8 bytes long, cipher expects an IV of precisely 16 bytes, padding with \0 in C:\xampp\htdocs\matkinh\administrator\components\com_virtuemart\helpers\vmcrypt.php on line 87
#6
Thank you, Milbo. I did install the update last week and "that" part seems to be working fine. It's the error in the shopping cart (due to the type of captcha) that is a thorn in my side.
I decided I'd just put a message in the cart to log in before doing anything, or the user will get errors.
The problem with that is, no guest checkout.
#7
Because the prices are unnecessary complex, old vm1 stuff. Since vm2 it works a different way.

We have rules which works per categories, so using the "old parameters" just create more work than necessary.
#8
I think that is fixed with version 4.2.12
#9
hmmm, maybe too strong filter. What happens if you store a default without html? just something like "test", then we may get a grib of this problem.
#10
If you store a parent, which has the extra tab for children, than it takes this values for the children.

that works most time correctly, but if someone buys something meanwhile, it wont work 100%.

But that is a common problem for our stock feature.