1. Question: What is the correct method to add an external JavaScript file to Magento's local.xml file?

    A
    <action method="addScript"><script>jquery/jquery.js</script></action>

    B
    <action method="addCss"><script>jquery/jquery.js</script></action>

    C
    <action method="addJS"><script>jquery/jquery.js</script></action>

    D
    None

    Note: Not available
    1. Report
  2. Question: Which of the following will check whether the currently logged-in customer ever placed an order at the Magento store?

    A
    $order = Mage::getModel('sales/order')->getCollection() ->addAttributeToFilter('customer_id',$session->getId()) ->getFirstItem(); if ($orders->getSizeValue()) { }

    B
    $orders = Mage::getResourceModel('sales/order_collection') ->addFieldToSelect('*') ->addFieldToFilter('entity_id', $customer->getEntityId()); if ($orders->getSize()) { }

    C
    $orders = Mage::getResourceModel('sales/order_collection') ->addFieldToFilter('customer_id', $customer->getId()); if ($orders->getValue()) { }

    D
    $orders = Mage::getResourceModel('sales/order_collection') ->addFieldToSelect('*') ->addFieldToFilter('customer_id', $customer->getId()); if ($orders->getSize()) { }

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd