Jump to content
Sign in to follow this  
JesusSuarz

access smarty

Recommended Posts

Hello

I have a variable that is printed with {debug} in the tpl template.

however I want to get the result in php of this variable.

I need to get $customfields from a hook.

how could you access $customfields that is printed inside a product

 

@brian! could you help me?

Share this post


Link to post
Share on other sites
5 hours ago, JesusSuarz said:

how could you access $customfields that is printed inside a product

well assuming the array exists on the page in question (and you say it does - productdetails?), and the hook point can access $vars directly, then $vars['customfields'] should give you access to the product customfields array.

3 hours ago, JesusSuarz said:

in other words, I am trying to get the custom values of a product from a customer....

the other way would be a quick db query - especially if you were only looking for one specific pcf value.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By ModulesGarden
      1. QuickBooks Desktop For WHMCS 1.5.0

      In search of a solution that would seamlessly connect all financial data between the QuickBooks Desktop platform and the WHMCS system? No need to look any further, as we have just significantly upgraded the exact module you want – QuickBooks Desktop For WHMCS!

      The 1.5.0 version, released just today, contains various enhancements that boost the performance of this unique module. A brand new cron job synchronization argument allows automatic export of all existing clients from WHMCS to QuickBooks!

      Additionally, this famous piece of software has received a whole new scope of compatibility, featuring:
      WHMCS V8.6 and the latest V8.7, PHP 8.1, QuickBooks Desktop 2003 Pro/Premier/Enterprise latest releases. You’re more than welcome to take an even closer look at QuickBooks Desktop For WHMCS 1.5.0 on our website – make sure you take advantage of the notable 10% discount!

      Read more about QuickBooks Desktop For WHMCS 1.5.0!

      Are you a proud QuickBooks Online user? Make sure to check our specially designed module, which has also obtained WHMCS V8.7 support!




      2. Payment Gateway Charges For WHMCS 2.2.2

      We have one more piece of great news regarding the extended compatibility progress of our products: the enthusiastically anticipated upgrade of Payment Gateway Charges For WHMCS has just dropped!

      The module’s latest 2.2.2 version empowers you to include additional discounts and fees for the usage of different payment gateways not only in WHMCS V8.6, but also the most recent V8.7!

      Read more about Payment Gateway Charges For WHMCS 2.2.2!




      3. Elevate your customer relationships with the new EasyDCIM business guide!

      The web hosting industry consists of a great number of businesses that offer innovative solutions and high-end technology, but it’s not uncommon for many to struggle to retain customers in the long term. The issue is a lot simpler than it may seem: the most critical aspect is often overlooked, which is customer satisfaction!

      This doesn’t have to be the case with your enterprise, especially with so many ways available to make clients content. But what are the best ones? The EasyDCIM team has the answer, having compiled a list of 10 most effective methods to show your clientele how much you value them.

      The whole guide can be found on their Blog, so if you’re interested in building a customer-centric business model, be sure to stop by for a quick break from professional duties!

      Find out more on the EasyDCIM Blog!




      Need Custom Software Development For Your Business?
      Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
    • By WGS
      We’ve got something to share…
      We recently received a lot of requests for support with a client password reset in the WHMCS admin area. As always, you said it and we acted on it.
      We are excited to introduce our new module for admins to reset passwords on the WHMCS platform - Reset user password  module. With our Reset user password  module, admins can now securely reset passwords for clients without compromising their privacy. 
      We understand the pain of recovering and resetting passwords for clients and have ensured that you can go through the process smoothly. 
       
      Buy the module https://whmcsglobalservices.com/reset-client-password-whmcs-module/ here today. 
       
      In case of any queries, you can find us here https://whmcsglobalservices.com/contact-us/
       
      Always here to serve all your WHMCS needs.
    • By wpimedia3
      I recently upgraded to WHMCS 8.6.1., upon scanning for PHP 8.1 compatibility I get these files flagged (screenshot attached). I'm running ionCube Loader Version: 12.0.2 currently. Any info on how to rectify would be appreciated. Thanks

    • By ModulesGarden
      1. It’s Christmas time - 10% OFF storewide!

      The bells can already be heard jingling, so allow us to express the kindest wishes to you all, dearest clients! May your Christmas be a wonderful time of delight, happiness and peacefulness, spent with family and friends. Cheers from the whole ModulesGarden team!

      We’re excited to let you know that one more gift is waiting for you, as our Christmas Promotion has just begun – each WHMCS module you can find on our marketplace has been touched by a 10% discount! Before you start browsing, take a quick stop at our Blog and get the jolly promo code, which can be used until January 8th, 2023.

      Make the atmosphere even more magical!




      2. CRM For WHMCS 2.9.0

      Completely absorbed by the recent workflow, our developers have crafted a huge update to our well-known module, famous for the automated management of customer relationships. Precisely, we’re calling out CRM For WHMCS!

      By means of the 2.9.0 release, your business connections will get substantially improved by means of as many as 10 spanking new features! We’ll put just a few under the microscope right away:
      Set “Pending”, “Confirmed”, “Closed” or any other custom status with defined color to follow-ups, Modify the email subject and the content when the email template, that is about to be sent, is loaded, Tag staff members using the “@” sign in the notes in order to notify them if they have been mentioned. Crowning the unbelievable advancement, that is CRM For WHMCS 2.9.0, is the flawless compatibility with the latest WHMCS V8.6 and PHP 8.1. Discover its whole extent on our website along with a little surprise!

      Read more about CRM For WHMCS 2.9.0!




      3. OpenStack Projects For WHMCS 1.5.0

      On the other hand, you may want to start the search for a perfect gift with a detailed look at our popular module, crafted to allow the provisioning of OpenStack projects in a completely automated manner. Configuring resource bundles and assigning user roles remotely? This description fits only one piece of software – OpenStack Projects For WHMCS.

      The just released 1.5.0 version is a perfect idea for a Christmas gift this year, with its support for OpenStack "Zed" and the immaculate compatibility with WHMCS V8.6 and PHP 8.1. The changelog doesn’t however end there, so discover it in its entirety and make this Christmas even more memorable!

      Read more about OpenStack Projects For WHMCS 1.5.0!




      4. Office 365 For WHMCS 3.1.0

      You are not mistaken, this is the third major update that our developers have conjured just recently! Provisioning Microsoft Office 365 plans in your WHMCS has now become even more advanced, all thanks to the upgraded Office 365 For WHMCS.

      Owing to the impeccable support for WHMCS V8.6 and PHP 8.1 in combination with a set of extensive improvements, the 3.1.0 version is ready to amaze you even more than it already could.

      Read more about Office 365 For WHMCS 3.1.0!




      5. GoGetSSL For WHMCS 2.8.1 & Latest Updates

      These past days have been all about upgrades, resulting in another refinement to our free toolkit designed for the provisioning of SSL certificates. Take a closer look at GoGetSSL For WHMCS 2.8.1 and find out about the news we have introduced this week!

      The ongoing task to equip all our modules with impeccable support for the latest WHMCS V8.6 has resulted in another set of updates, laid out below for your comfort:
      Domain & Email Forwarding For WHMCS - v1.4.4 IP Manager For WHMCS - v2.5.14 Product Free Trial Manager For WHMCS - v1.0.1 R1Soft Backups For WHMCS - v1.1.12 Unban Center For WHMCS - v2.3.8 Zimbra Email For WHMCS - 2.1.10


      Need Custom Software Development For Your Business?
      Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
    • By ModulesGarden
      1. OpenStack VPS & Cloud For WHMCS 2.2.0

      It’s no secret that Christmas is getting closer with each day that passes, but have you already included yourself in the gift shopping spree? If you’re unsure what your heart desires, let us solve the mystery by announcing this week’s news – an update to OpenStack VPS & Cloud For WHMCS!

      The 2.2.0 version of this popular module for the provisioning of OpenStack virtual servers has a few exciting tricks up its sleeve, so let’s take a closer look at some of them:
      OpenStack "Zed" support, Setting the "Availability Zone" as the configurable option, Running scheduled tasks manually from the admin area, without waiting for the cron job. Worth highlighting is also the introduced WHMCS V8.6 and PHP 8.1 support - why don't you take a look at the whole changelog and stick around to grab a special 10% discount?

      Read more about OpenStack VPS & Cloud For WHMCS 2.2.0!




      2. Under the microscope: Email Notifications Organizer For WHMCS!

      Even though we have crafted an abundance of practical modules so far, we’re constantly thinking of new solutions that would make daily life easier for you and your clients. This was exactly the case with our latest creation – Email Notifications Organizer For WHMCS!

      So as to display its features in as much detail as possible, we have uploaded a fresh entry on our Blog, which will also show you the benefits that you and your customers will experience thanks to this module. Reduced carbon footprint and well-organized inbox are just two examples!

      Read more about Email Notifications Organizer For WHMCS!




      3. New EasyDCIM business guide: How to make clients feel cared for

      You surely know that in order for a web hosting business to thrive, a lot of different aspects need to be focused on, however particularly one of them should by all means become the priority: the customer.

      Putting your clientele in the center of attention by building a customer-centric business model is a subject close to the heart of EasyDCIM team, who have decided to share their knowledge in a recent Blog post, displaying 10 ways how to best appeal to clients!

      So, if you were looking for ways to ensure the success of your web hosting enterprise, perhaps this is the direction you as a provider should take. There is only one way to find out – start reading!

      Continue on the EasyDCIM Blog!




      Need Custom Software Development For Your Business?
      Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated