Jump to content

JamesP

Member
  • Posts

    8
  • Joined

  • Last visited

About JamesP

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

JamesP's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Hi, having some issue with the custom fields using the addorder . The below works when I explicitly declare the values. 'customfields' => array(base64_encode(serialize(array(29 => "9700", 30 => "testtoken", 66 => "Somewhere")))), However, when trying to fill the values using an associated array 'customfields' => array(base64_encode(serialize(array( $idArray['Port'] => $clientData['serverport'], $idArray['Token'] => $clientData['servertoken'], $idArray['region|Server Region'] => $clientData['server'])))), It doesnt work, the fields are just left blank on the order, and no error is thrown. I've done a var_dump of the array values in the same script, and they do contain the right values (which works if a manually type them) I don't understand why it works if I type 29 => "9700" but not $idArray['Port'] => $clientData['serverport']
  2. Hi I am writing an Import script for 4000 customers using whmcs api. I have two custom fields for my products, which are not visable on the order form, but are vital for the successful operation of the product ( its a custom module) However, the WHMCS API getproducts only shows customfields that are ticked "show on order form" , Unfortuantly that is not an option for these fields as the module calculates their values, and the customer should not be able to specify them. I need the custom field ID values, to then use correctly in an AddOrder API call, Can anyone think of another way I can get the right ID Values?
  3. Hi There. I have set up the Facebook sign in integrations and while it shows fine on the client area login. It does not show on the shopping cart pages? I was expecting people to be able to "register" using Facebook when purchasing an item/going through the checkout process. Does anyone know how to fix this?
  4. Hi I am trying to get my custom template such as the navbar/footer to go the full width. But it seems, somewhere within WHMCS everything is generated with a container-fluid and then a container inside (meaning all your content is squished into the container) Does anyone know how I can over-ride this?
  5. Hi I have uploaded my logo in System settings and it shows fine on Invoices ect ect. However On the shopping cart, and the portal homepage/client area homepage it still shows the company name in text. I have tried editing the headerl.tpl to the below {if $assetLogoPath} <a href="{$WEB_ROOT}/index.php" class="logo"><img src="http://logo-link" alt="{$companyname}"></a> {else} <a href="{$WEB_ROOT}/index.php" class="logo"<img src="http://logo-link"></a> {/if} I can 100% say the link is correct and works. I am at a loss, as I have edited the code directly with legitimate HTML that would work anywhere else so I don't know it wont show.
  6. You sir, are a legend. Thank you for explaining that to me.
  7. Hi That was just a typo, but what you have provided now works. This is really confusing me and making me question everything I know about CSS. If you see the attached screenshot, I can change the "order summary" background color to blue, within the browser. When i try the same in the /whmcs/templates/customtemp/css/custom.css file like the below - #order-standard_cart .summary-container { background-color:blue; } Nothing happens, though I can clearly see in the "inspect" in the browser that element is ID order-standard_cart .summary-container I'm really struggling how to find out the right ID/classes for the elements I want to edit, it always works within the browser, but 50/50 if i try it myself. Am i missing something?
  8. Hi I am just getting started with customising my WHMCS install. I have read this -https://developers.whmcs.com/themes/css-styling/ and applied my styling to the custom.css. I decided to start simple and just edit the background color of one of the side bars. This is what i've done Inspected the element in the browser (see attached screenshot) Applied below in whmcs/templates/customtemp/css/custom.css .panel.panel-sidebar { background-color:; } upload, restarted apache and reloaded the page. The background is still white, can anyone advise where I have gone wrong?
  9. Welcome to WHMCS.Community JamesP! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

×
×
  • 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