CMS, CRM, E-commerce questions and answers

Answers on CMS, CRM, E-commerce questions. WordPress, SharePoint, Drupal, Salesforce, Magento, Tridion, Joomla, Craft CMS, CiviCRM and Sitecore topics.

WordPress

Resize $term attachment using url

I'm using this plugin (https://it.wordpress.org/plugins/wp-custom-taxonomy-image/) for attaching an image to a custom taxonomy. The plugin's function returns the attached term's image as following: function get_wp_term_image($term_id){ return get_option('_category_image'.$term_id); } It works fine but I'd like to resize the returned image because I'm using it in a page displaying all taxonomy categories ....

Maria Maria: Just now

Magento

Magento 2 : optimize customer attributes save code

i am trying to save data using customer attributes and the below code work fine, can i further optimize below code Thankyou <?php namespace Tatva\Loginpopup\Controller\Index; use Magento\Framework\App\Action\Context; use Magento\Framework\App\Filesystem\DirectoryList; class save extends \Magento\Framework\App\Action\Action { protected $_resultPageFactory; protected $customerFactory; protected $customer; public function __construct( Context $context, \Magento\Customer\Model\Customer $customer, \Magento\Customer\Model\ResourceModel\CustomerFactory $customerFactory, \Magento\Framework\View\Result\PageFactory ....

Cameron Cameron: 3 minutes ago

Magento

changing position of quantity block in product page

I am trying to change the position of quantity block in product page. I was trying to create a new quantity module named qty.phtml in /product/view folder and linked it in view.phtml using the following code <?php echo $this->getChildHtml('qty') ?> The code for quantity module (qty.phtml) <?php $_product = $this->getProduct(); ....

Hudson Hudson: 6 minutes ago

Drupal

Twig dump not working (PHP Warning: Leaked 2 hashtable iterators )

I'm trying to create a custom markup for a views-block. What I want to do is similar to what someone is trying to do here (How to create a custom markup for a views-block? (https://drupal.stackexchange.com/questions/163786/how-to-create-a-custom-markup-for-a-views-block/182826#182826)). My view-block has 3 items and I want to create a template where I can ....

Cameron Cameron: 9 minutes ago

CiviCRM

wrong currency on contribution pages - how to correct?

I have set default currency to GBP, created memberships with GBP amounts, and set GBP as the currency within my contribution page. But membership fee displays in USD on the contribution page and when sending payees to paypal (my only payment processor) attempts to charge of a USD amount. What ....

Hannah Hannah: 12 minutes ago

WordPress

No CSS being loaded on backend

I have a WordPress installation on AWS and I was facing an issue that authors are not able to submit content like media in one go and a time-out error occurs. After refreshing the page 5-6 times authors are able to upload content again. To mitigate this issue, I deactivated ....

Owen Owen: 15 minutes ago

SharePoint

Sharepoint 2016 How to change (ONLY) the Announcements webpart title font?

I have 4 webparts on a site page in sharepoint. 3 of the webparts are a content editor and I added 1 announcements webpart. I was able to change the webpart titles of the content editor webparts, however I cannot seem to change the font color for the announcements webpart. ....

William William: 18 minutes ago

Magento

How to add default image for an attribute of type media image?

I have created an attribute of type media image and now the attribute is showing in a Product Edit page in admin panel. For some products no image is selected for this attribute. I need to show any default image in the case where no image is selected. Because it ....

Oliver Oliver: 21 minutes ago

Magento

I want to clear Reports->Marketing->Products in Carts,Abandoned Carts from admin panel in magento-2.1.How to achieve it?

I have deleted all customers, orders from admin panel. But I also want to delete "Reports >> Marketing >> Products in Carts, Abandoned Carts" from admin panel in "Magento 2.1". How can I do that? Please guide me!!! ....

James James: 24 minutes ago

WordPress

Text lost under image after WordPress 5.0 upgrade

Right beneath the testimonial is the text <p>Tony (Property Manager)</p>, but it's overlapped by the WordPress 5.0 gallery that follows it. I don't think it's a float problem. Here: http://www.sunnyexteriors.ca/tony-property-manager-soffits/ ....

Dominic Dominic: 27 minutes ago