Author Topic: Virtuemart cart values visualisation in RsForm.  (Read 350 times)

aron1996

  • Beginner
  • *
  • Posts: 1
  • A beginner
Virtuemart cart values visualisation in RsForm.
« on: July 22, 2020, 09:43:09 am »
I'd like to ask for help with the problem below. I'd like to show the names and values of the items which is in the shop in Rsform default value field. I've read a lot of article about it but none of them helped. Most of the answers was SQL based, but my cart's content is not from a database, so i can't use it.

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3693
  • using Matomo instead of Google Analytics
Re: Virtuemart cart values visualisation in RsForm.
« Reply #1 on: July 22, 2020, 13:24:58 pm »
Most of the answers was SQL based, but my cart's content is not from a database, so i can't use it.

All VirtueMart products are stored in a mysqli database. But I wonder what kind of product display you want to achieve with RSForms that isn't possible with VirtueMart itself.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 651
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Virtuemart cart values visualisation in RsForm.
« Reply #2 on: July 22, 2020, 16:28:30 pm »
Quote
my cart's content is not from a database

Ok, all joomla is from DB... Then what do you have in cart?
And wht do you doing with RSForm?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9779
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Virtuemart cart values visualisation in RsForm.
« Reply #3 on: July 22, 2020, 23:45:36 pm »
the cart contents are in the php session  until confirmed .. is that what you mean?

you can get it by the std Joomla session functions or load the VM classes and get it by $cart

    "__vm": {
        "vmcart": "{\"cartProductsData\":[{\"virtuemart_product_id\":161,\"quantity\":1,\"customProductData\":{\"11\":[]}},{\"virtuemart_product_id\":162,\"quantity\":1,\"customProductData\":{\"11\":[]}},{\"virtuemart_product_id\":160,\"quantity\":1,\"customProductData\":{\"11\":[]}}],\"vendorId\":1,\"lastVisitedCategoryId\":0,\"virtuemart_shipmentmethod_id\":\"1\",\"virtuemart_paymentmethod_id\":\"3\",\"automaticSelectedShipment\":false,\"automaticSelectedPayment\":false,\"order_number\":null,\"BT\":{\"virtuemart_user_id\":\"624\",\"virtuemart_userinfo_id\":\"3\",\"address_type\":\"BT\",\"address_type_name\":\"\",\"company\":\"\",\"title\":\"\",\"last_name\":\"Shopper\",\"first_name\":\"Test\",\"middle_name\":\"\",\"phone_1\":\"\",\"phone_2\":\"\",\"fax\":\"\",\"address_1\":\"22 Harry Road\",\"address_2\":\"\",\"city\":\"Perth\",\"virtuemart_state_id\":\"76\",\"virtuemart_country_id\":\"13\",\"zip\":\"6000\",\"agreed\":\"0\",\"tos\":\"0\",\"customer_note\":\"\",\"created_on\":\"2019-01-01 13:32:13\",\"created_by\":\"0\",\"modified_on\":\"2019-01-07 16:39:08\",\"modified_by\":\"621\",\"locked_on\":\"0000-00-00 00:00:00\",\"locked_by\":\"0\",\"name\":\"testshopper\",\"email\":\"testshopper@gjcwebdesign.com\",\"username\":\"testshopper\"},\"ST\":{\"virtuemart_user_id\":\"624\",\"virtuemart_userinfo_id\":\"12\",\"address_type\":\"ST\",\"address_type_name\":\"Address Nicknam\",\"company\":\"\",\"title\":null,\"last_name\":\"3131\",\"first_name\":\"1213\",\"middle_name\":\"\",\"phone_1\":\"\",\"phone_2\":\"\",\"fax\":\"\",\"address_1\":\"12121\",\"address_2\":\"\",\"city\":\"campsie\",\"virtuemart_state_id\":\"70\",\"virtuemart_country_id\":\"13\",\"zip\":\"2650\",\"agreed\":\"0\",\"tos\":\"0\",\"customer_note\":\"\",\"created_on\":\"2020-01-16 05:53:15\",\"created_by\":\"624\",\"modified_on\":\"2020-05-04 10:05:51\",\"modified_by\":\"624\",\"locked_on\":\"0000-00-00 00:00:00\",\"locked_by\":\"0\"},\"cartfields\":{\"customer_note\":\"\",\"tos\":\"0\"},\"couponCode\":\"\",\"_triesValidateCoupon\":[],\"order_language\":\"en-GB\",\"pricesCurrency\":\"9\",\"paymentCurrency\":\"9\",\"_guest\":0,\"_inCheckOut\":false,\"_inConfirm\":false,\"_redirected\":false,\"_dataValidated\":false,\"_confirmDone\":false,\"STsameAsBT\":0,\"selected_shipto\":\"12\",\"_fromCart\":false,\"layout\":\"default\",\"layoutPath\":\"\",\"virtuemart_cart_id\":\"3\",\"orderdoneHtml\":false,\"virtuemart_order_id\":false,\"byDefaultBT\":[],\"byDefaultST\":{\"address_type_name\":1},\"cartLoaded\":[true,true,true]}"
    }
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation